blob: 905cd6a983b77dd58c3b94423e6f3b1c82d1301b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Ike Devolder <ike.devolder@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
_android_arch=x86
pkgname=android-${_android_arch}-taglib
pkgver=2.0.2
pkgrel=1
arch=('any')
pkgdesc="A Library for reading and editing the meta-data of several popular audio formats (Android ${_android_arch})"
url='https://taglib.github.io/'
license=('LGPL-2.1-only'
'MPL-1.1')
groups=('android-taglib')
depends=("android-${_android_arch}-zlib")
makedepends=('cmake'
"android-${_android_arch}-utf8cpp")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://taglib.github.io/releases/taglib-${pkgver}.tar.gz")
md5sums=('95edea13107ac4cc07b7ad4bd1cb5cd1')
build() {
cd "${srcdir}/taglib-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-S . \
-B build-shared \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
-Dutf8cpp_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}/utf8cpp"
make -C build-shared $MAKEFLAGS
android-${_android_arch}-cmake \
-S . \
-B build-static \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TESTING=OFF \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
-Dutf8cpp_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}/utf8cpp"
make -C build-static $MAKEFLAGS
}
package() {
cd "${srcdir}/taglib-${pkgver}"
source android-env ${_android_arch}
make -C build-shared DESTDIR="${pkgdir}" install
make -C build-static DESTDIR="${pkgdir}" install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|