APKBUILD 982 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=1.12.1
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5 6 7 8
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"
Natanael Copa's avatar
Natanael Copa committed
9
depends=
Natanael Copa's avatar
Natanael Copa committed
10 11 12 13 14 15 16 17 18 19 20 21 22
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
Natanael Copa's avatar
Natanael Copa committed
23 24 25 26
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
27 28
	make DESTDIR="$pkgdir" install || return 1
}
29 30 31 32 33 34 35

# 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/
}

Natanael Copa's avatar
Natanael Copa committed
36
md5sums="e7d810a75d22954169f1530a436aca4c  mpg123-1.12.1.tar.bz2"