OCaml 4.14.0 rebuild
[arch-packages.git] / mpg123 / trunk / PKGBUILD
blob936248cbd9e6aad257bcfe5fb90cd24bc7780703
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=mpg123
5 pkgver=1.30.2
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=('libltdl' '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=('e2e9279799f3917c9ecbcb2ccdc2c246bda50317dbfdd7ba3d56281b7b4f5b1928442fc8e712fbf90543159afc703d1ab8ceb7e3c1c038e1547b82d1616bdc82'
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: