outsourced PKGBUILD files
This commit is contained in:
parent
aaec388e0e
commit
07a4e65730
|
@ -1,26 +0,0 @@
|
|||
pkgname=videodownloader
|
||||
pkgver=1.0.7
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
pkgdesc="A video downloader with Qt GUI (currently only YouTube is maintained)."
|
||||
license=('GPL')
|
||||
depends=('qt5-base' 'qtutilities' 'openssl')
|
||||
makedepends=('qt5-tools')
|
||||
install=${pkgname}.install
|
||||
url="https://github.com/Martchus/videodownloader"
|
||||
source=("videodownloader-${pkgver}.tar.gz::https://github.com/Martchus/videodownloader/archive/v${pkgver}.tar.gz")
|
||||
_reponame=videodownloader
|
||||
sha256sums=('9e3802e4ed47a4efb2d4f8a6ed5daf3e')
|
||||
|
||||
# head end
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
INSTALL_ROOT=$pkgdir/usr/ qmake-qt5 "$pkgname.pro" -r -spec linux-g++
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
||||
make install
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
post_install() {
|
||||
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
_name=videodownloader
|
||||
pkgname=mingw-w64-videodownloader
|
||||
pkgver=1.0.7
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
pkgdesc="A video downloader with Qt GUI (currently only YouTube is maintained, mingw-w64)."
|
||||
license=('GPL')
|
||||
depends=('mingw-w64-crt' 'mingw-w64-qt5-base' 'mingw-w64-qtutilities' 'mingw-w64-openssl')
|
||||
makedepends=('mingw-w64-gcc')
|
||||
url="https://github.com/Martchus/videodownloader"
|
||||
source=("videodownloader-${pkgver}.tar.gz::https://github.com/Martchus/videodownloader/archive/v${pkgver}.tar.gz")
|
||||
_reponame=videodownloader
|
||||
md5sums=('4e94aff9225d8873f752995c1bcc5f15')
|
||||
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
||||
|
||||
# head end
|
||||
|
||||
build() {
|
||||
cd $srcdir/$_name
|
||||
# build utilities for each architecture
|
||||
for _arch in ${_architectures}; do
|
||||
mkdir -p build-${_arch} && pushd build-${_arch}
|
||||
INSTALL_ROOT=$pkgdir/usr/ ${_arch}-qmake-qt5 -r ../${_name}.pro
|
||||
make
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$_name
|
||||
for _arch in ${_architectures}; do
|
||||
# bin stuff
|
||||
pushd build-${_arch}
|
||||
strip --strip-unneeded ./release/${_name}.exe
|
||||
install -m755 -D ./release/${_name}.exe $pkgdir/usr/${_arch}/bin/${_name}.exe
|
||||
popd
|
||||
done
|
||||
}
|
|
@ -111,9 +111,7 @@ RESOURCES += resources/icons.qrc \
|
|||
|
||||
OTHER_FILES += \
|
||||
README.md \
|
||||
LICENSE \
|
||||
pkgbuild/default/PKGBUILD \
|
||||
pkgbuild/mingw-w64/PKGBUILD
|
||||
LICENSE
|
||||
|
||||
#win32:RC_FILE += windowsicon.rc
|
||||
|
||||
|
|
Loading…
Reference in New Issue