PKGBUILDs/tageditor/git/PKGBUILD

41 lines
1.2 KiB
Bash
Raw Normal View History

2015-08-26 21:21:22 +02:00
# Maintainer: Martchus <martchus@gmx.net>
# decide whether to link against the deprecated Qt WebKit module (in qt5-webkit package ~40 MB) or
# the newer, chromium-based Qt WebEngine module (in qt5-webengine package ~100 MB)
_webviewprovider=qt5-webkit
2015-09-06 21:53:25 +02:00
_name=tageditor
2015-08-26 21:21:22 +02:00
pkgname=tageditor-git
2015-09-06 21:53:25 +02:00
pkgver=66.77a0bc2
pkgrel=11
2015-08-26 21:21:22 +02:00
arch=('i686' 'x86_64')
2015-09-01 21:26:32 +02:00
pkgdesc="A tag editor with Qt GUI and command-line interface supporting MP4 (iTunes), ID3, Vorbis and Matroska (git version)."
2015-08-26 21:21:22 +02:00
license=('GPL')
2015-08-31 01:53:31 +02:00
depends=('qt5-script' $_webviewprovider 'qtutilities' 'tagparser' 'desktop-file-utils' 'xdg-utils')
2015-11-08 20:48:19 +01:00
makedepends=('qt5-tools' 'git')
2015-08-26 21:21:22 +02:00
provides=('tageditor')
conflicts=('tageditor')
2015-09-06 21:53:25 +02:00
install=${_name}.install
2015-08-26 21:21:22 +02:00
url="https://github.com/Martchus/tageditor"
source=("${pkgname}::git://github.com/Martchus/tageditor.git")
_reponame=tageditor
2015-08-27 22:41:20 +02:00
sha256sums=('SKIP')
2015-08-26 21:21:22 +02:00
pkgver() {
cd "${srcdir}/${pkgname}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
cfg=()
if [[ _webviewprovider == qt5-webkit ]]; then
cfg+=(forcewebkit)
fi
2015-09-06 21:53:25 +02:00
INSTALL_ROOT=$pkgdir/usr/ qmake-qt5 "$_name.pro" $(for val in "${cfg[@]}"; do echo -n "CONFIG+=$val "; done)
make
2015-08-26 21:21:22 +02:00
}
package() {
cd "${srcdir}/${pkgname}"
make install
}