36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
# you also find the URL of a binary repository.
|
|
|
|
_reponame=videodownloader
|
|
pkgname=videodownloader
|
|
pkgver=1.3.6
|
|
pkgrel=1
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
|
pkgdesc='A video downloader with Qt GUI (currently only YouTube and Vimeo are maintained)'
|
|
license=('GPL')
|
|
depends=('qtutilities' 'openssl' 'desktop-file-utils' 'xdg-utils')
|
|
makedepends=('cmake' 'ninja' 'qt5-tools' 'mesa')
|
|
url="https://github.com/Martchus/${_reponame}"
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('59adbb242250235d0e580fbb858c3eb30c724f5463defc49330015e2233927ed')
|
|
|
|
build() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
cmake \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE:STRING='Release' \
|
|
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
-DBUILTIN_TRANSLATIONS:BOOL=ON \
|
|
-DBUILTIN_TRANSLATIONS_OF_QT:BOOL=OFF \
|
|
.
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
DESTDIR="${pkgdir}" ninja install
|
|
}
|