blob: f1111552931a4e8bc2092a676e122fa7d38dc1eb (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Eric BĂ©langer <eric@archlinux.org>
_android_arch=x86-64
pkgname=android-${_android_arch}-wavpack
pkgver=5.7.0
pkgrel=1
pkgdesc="Audio compression format with lossless, lossy and hybrid compression modes (Android ${_android_arch})"
arch=('any')
url="https://www.wavpack.com/"
license=('BSD')
depends=('android-ndk')
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/dbry/WavPack/releases/download/${pkgver}/wavpack-${pkgver}.tar.xz")
md5sums=('92f6d76e6e3d620aff296983792eab9f')
prepare() {
cd "${srcdir}/wavpack-${pkgver}"
sed -i 's|-lpthread||g' configure
}
build() {
cd "${srcdir}/wavpack-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-configure \
--disable-asm \
--disable-apps
make $MAKEFLAGS
}
package() {
cd "${srcdir}/wavpack-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="$pkgdir" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|