blob: 0acd7a354a3e29c145cb79163b4ec91b61bd6077 (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Eric BĂ©langer <eric@archlinux.org>
_android_arch=x86
pkgname=android-${_android_arch}-mpg123
pkgver=1.32.9
pkgrel=1
arch=('any')
pkgdesc="Console based real time MPEG Audio Player for Layer 1, 2 and 3 (Android ${_android_arch})"
url='https://mpg123.de/'
license=('LGPL2.1')
groups=('android-mpg123')
depends=("android-${_android_arch}-alsa-lib")
makedepends=('android-configure'
"android-${_android_arch}-sdl2")
optdepends=("android-${_android_arch}-sdl2: for sdl audio support")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://downloads.sourceforge.net/sourceforge/mpg123/mpg123-${pkgver}.tar.bz2"{,.sig})
md5sums=('8e2c4a7251aeb2eba89800d12218055a'
'SKIP')
validpgpkeys=('D021FF8ECF4BE09719D61A27231C4CBC60D5CAFE')
build() {
cd "${srcdir}/mpg123-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-configure \
--disable-components \
--enable-libmpg123 \
--enable-libout123 \
--enable-libout123-modules \
--enable-libsyn123 \
--enable-int-quality \
--with-audio="alsa oss sdl"
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make $MAKEFLAGS
}
package() {
cd "${srcdir}/mpg123-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|