APKBUILD 1.08 KB
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.15.3
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3"
url="http://sourceforge.net/projects/mpg123"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9
license="GPL2 LGPL2"
subpackages="$pkgname-dev $pkgname-doc"
Natanael Copa's avatar
Natanael Copa committed
10
depends=
Natanael Copa's avatar
Natanael Copa committed
11 12
makedepends="pkgconfig libtool alsa-lib-dev"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
13
options="libtool"
Natanael Copa's avatar
Natanael Copa committed
14 15 16 17 18 19 20 21 22 23 24

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
25 26 27 28
}

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

Natanael Copa's avatar
Natanael Copa committed
32 33 34
md5sums="f734f9e2982f398a1c919475fc0b3798  mpg123-1.15.3.tar.bz2"
sha256sums="b6b1aef887835f83ac3d4acb5701ae619041fc60d76548ad779a409080338df7  mpg123-1.15.3.tar.bz2"
sha512sums="d98893017601403afe84f2d6082a3d2f4ef0a5f8530a3f16a1c909c27e634de21e88f57047b7bba1f5847847b3ef5ab0654532a8fa35aece038e4411198a7eaa  mpg123-1.15.3.tar.bz2"