1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
7 pkgdesc='Console based real time MPEG Audio Player for Layer 1, 2 and 3'
8 url="https://sourceforge.net/projects/mpg123"
12 makedepends=('sdl2' 'jack' 'libpulse')
13 optdepends=('sdl2: for sdl audio support'
14 'jack: for jack audio support'
15 'libpulse: for pulse audio support'
17 provides=(libmpg123.so libout123.so)
18 source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
19 sha512sums=('5dd550e06f5d0d432cac1b7e546215e56378b44588c1a98031498473211e08bc4228de45be41f7ba764f7f6c0eb752a6501235bcc3712c9a8d8852ae3c607d98'
21 validpgpkeys=('D021FF8ECF4BE09719D61A27231C4CBC60D5CAFE')
24 cd ${pkgname}-${pkgver}
27 --enable-int-quality \
28 --with-audio="alsa oss sdl jack pulse"
29 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
30 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
35 cd ${pkgname}-${pkgver}
36 make DESTDIR="${pkgdir}" install
37 install -Dm 755 scripts/conplay "${pkgdir}/usr/bin/conplay"