APKBUILD 962 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.25.7
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5
pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3"
Sören Tempel's avatar
Sören Tempel committed
6
url="http://www.mpg123.org/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9
license="GPL2 LGPL2"
subpackages="$pkgname-dev $pkgname-doc"
Sören Tempel's avatar
Sören Tempel committed
10
depends=""
Natanael Copa's avatar
Natanael Copa committed
11
makedepends="libtool alsa-lib-dev linux-headers"
Sören Tempel's avatar
Sören Tempel committed
12
source="http://www.mpg123.org/download/$pkgname-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
13
options="libtool"
14 15 16 17 18 19 20
builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	make check
}

Sören Tempel's avatar
Sören Tempel committed
21
build() {
22
	cd "$builddir"
23 24 25 26
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
27 28 29 30 31
		--disable-dependency-tracking \
		--with-ipv6 \
		--with-pic \
		--with-optimization=0 \
		--with-cpu=i386_fpu \
32 33
		--with-audio="alsa oss"
	make
Natanael Copa's avatar
Natanael Copa committed
34 35 36
}

package() {
37 38
	cd "$builddir"
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
39
}
40

Natanael Copa's avatar
Natanael Copa committed
41
sha512sums="4e0972149ce4f792cc361d96d638551eb5184942465e69713202d0830a0a54b33e3effe2e460683b996024772edba5e0be341048b9d0c73dace557c640d4414e  mpg123-1.25.7.tar.bz2"