PKGBUILDs/videodownloader/mingw-w64/PKGBUILD

39 lines
1.2 KiB
Bash

_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
}