PKGBUILDs/tageditor/mingw-w64/PKGBUILD

43 lines
1.5 KiB
Bash
Raw Normal View History

2015-08-04 20:04:32 +02:00
# Maintainer: Martchus <martchus@gmx.net>
_name=tageditor
2015-08-11 22:21:14 +02:00
# decide whether to link against the deprecated Qt WebKit module (qt5-webkit package ~40 MB) or
# the newer, chromium-based Qt WebEngine module (qt5-webengine package ~100 MB)
_webviewprovider=qt5-webkit
pkgname=mingw-w64-tageditor
2015-10-16 22:52:00 +02:00
pkgver=1.2.0
pkgrel=1
arch=('any')
2015-09-01 21:26:32 +02:00
pkgdesc="A tageditor with Qt GUI and command line interface supporting MP4 (iTunes), ID3, Vorbis and Matroska."
license=('GPL')
2015-08-11 22:21:14 +02:00
depends=(mingw-w64-{crt,qt5-script,$_webviewprovider,qtutilities,tagparser})
makedepends=('mingw-w64-gcc' 'mingw-w64-qt5-tools')
url="https://github.com/Martchus/tageditor"
source=("tageditor-${pkgver}.tar.gz::https://github.com/Martchus/tageditor/archive/v${pkgver}.tar.gz")
_reponame=tageditor
2015-08-27 22:41:20 +02:00
sha256sums=('SKIP')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
2015-09-19 23:50:45 +02:00
cfg=(mingw-w64-{install,manualstrip-exe})
2015-08-11 22:21:14 +02:00
if [[ _webviewprovider == qt5-webkit ]]; then
cfg+=(forcewebkit)
fi
# build utilities for each architecture
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
2015-08-11 22:21:14 +02:00
INSTALL_ROOT=$pkgdir/usr/${_arch} ${_arch}-qmake-qt5 ../${_name}.pro $(for val in "${cfg[@]}"; do echo -n "CONFIG+=$val "; done)
2015-09-19 23:50:45 +02:00
make -j 1
popd
done
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
2015-07-18 00:43:03 +02:00
for _arch in ${_architectures}; do
pushd build-${_arch}
2015-07-18 00:43:03 +02:00
make install
popd
done
}