archrelease: copy trunk to extra-x86_64
[arch-packages.git] / mpg123 / trunk / PKGBUILD
blob8c50a457cee1eadd17c1ba11356b3a702abd1aaa
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=mpg123
5 pkgver=1.31.3
6 pkgrel=1
7 pkgdesc='Console based real time MPEG Audio Player for Layer 1, 2 and 3'
8 url="https://sourceforge.net/projects/mpg123"
9 arch=('x86_64')
10 license=('LGPL2.1')
11 depends=('alsa-lib')
12 makedepends=('sdl2' 'jack' 'libpulse')
13 optdepends=('sdl2: for sdl audio support'
14             'jack: for jack audio support'
15             'libpulse: for pulse audio support'
16             'perl: for conplay')
17 provides=(libmpg123.so libout123.so)
18 source=(https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
19 sha512sums=('5dd550e06f5d0d432cac1b7e546215e56378b44588c1a98031498473211e08bc4228de45be41f7ba764f7f6c0eb752a6501235bcc3712c9a8d8852ae3c607d98'
20             'SKIP')
21 validpgpkeys=('D021FF8ECF4BE09719D61A27231C4CBC60D5CAFE')
23 build() {
24   cd ${pkgname}-${pkgver}
25   ./configure \
26     --prefix=/usr \
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
31   make
34 package() {
35   cd ${pkgname}-${pkgver}
36   make DESTDIR="${pkgdir}" install
37   install -Dm 755 scripts/conplay "${pkgdir}/usr/bin/conplay"
40 # vim: ts=2 sw=2 et: