44 lines
1.3 KiB
Bash
44 lines
1.3 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-git
|
|
_name=${pkgname%-git}
|
|
pkgver=109.29a80c0
|
|
pkgrel=2
|
|
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-git' 'openssl' 'desktop-file-utils' 'xdg-utils')
|
|
makedepends=('cmake' 'ninja' 'qt5-tools' 'git' 'mesa')
|
|
provides=("${_name}")
|
|
conflicts=("${_name}")
|
|
url="https://github.com/Martchus/${_reponame}"
|
|
source=("${_reponame}::${MARTCHUS_GIT_URL_PREFIX:-git+https://github.com/Martchus}/${_reponame}.git")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
|
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
|
cmake \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE:STRING='Release' \
|
|
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
|
|
-DCONFIGURATION_NAME:STRING='git' \
|
|
-DCONFIGURATION_PACKAGE_SUFFIX:STRING='-git' \
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
.
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
|
DESTDIR="${pkgdir}" ninja install
|
|
}
|