2015-08-04 20:04:32 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
2016-03-25 21:43:59 +01:00
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
2015-06-24 23:12:08 +02:00
|
|
|
_name=tagparser
|
2015-12-02 02:20:30 +01:00
|
|
|
_reponame=tagparser
|
2015-06-24 23:12:08 +02:00
|
|
|
pkgname=mingw-w64-tagparser
|
2016-08-05 01:55:23 +02:00
|
|
|
pkgver=5.0.2
|
2016-04-26 21:19:49 +02:00
|
|
|
pkgrel=1
|
2015-06-24 23:12:08 +02:00
|
|
|
arch=('any')
|
2016-08-05 01:55:23 +02:00
|
|
|
pkgdesc="C++ library for reading and writing MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus and Matroska tags (mingw-w64)"
|
2015-06-24 23:12:08 +02:00
|
|
|
license=('GPL')
|
2015-12-06 19:17:57 +01:00
|
|
|
depends=('mingw-w64-crt' 'mingw-w64-c++utilities' 'mingw-w64-zlib')
|
|
|
|
makedepends=('mingw-w64-gcc' 'mingw-w64-cmake')
|
2015-12-02 02:20:30 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
|
|
|
source=("tagparser-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
2016-08-05 01:55:23 +02:00
|
|
|
sha256sums=('9cb10f449f1faef883e0f59ce185801661a44f8426e17274373c56911ec32cbc')
|
2015-12-06 19:17:57 +01:00
|
|
|
options=(!buildflags staticlibs !strip !emptydirs)
|
2015-06-24 23:12:08 +02:00
|
|
|
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
|
|
|
|
|
|
|
build() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
# build utilities for each architecture
|
2016-08-05 01:55:23 +02:00
|
|
|
export CXXFLAGS='-O0'
|
2015-12-24 16:50:30 +01:00
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
mkdir -p build-${_arch} && pushd build-${_arch}
|
2016-04-26 21:19:49 +02:00
|
|
|
${_arch}-cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr/${_arch}" ../
|
2015-12-24 16:50:30 +01:00
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
pushd build-${_arch}
|
2016-04-26 21:19:49 +02:00
|
|
|
make DESTDIR="${pkgdir}" install-mingw-w64-strip
|
2015-12-24 16:50:30 +01:00
|
|
|
popd
|
|
|
|
done
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|