# Maintainer: Natanael Copa pkgname=mpg123 pkgver=1.10.1 pkgrel=0 pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3" url="http://sourceforge.net/projects/mpg123" license="GPL2 LGPL2" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends="pkgconfig libtool alsa-lib-dev" source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2" build() { cd "$srcdir"/$pkgname-$pkgver ./configure --prefix=/usr \ --disable-dependency-tracking \ --with-ipv6 \ --with-pic \ --with-optimization=0 \ --with-cpu=i386_fpu \ --with-audio="alsa oss" || return 1 make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install || return 1 } # mpg123 needs the output_*.la files so we move them back from -dev package dev() { default_dev mv "$subpkgdir"/usr/lib/mpg123/output_* "$pkgdir"/usr/lib/mpg123/ } md5sums="bddabc8ae14ede213d91398a6a492f2a mpg123-1.10.1.tar.bz2"