APKBUILD 964 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.1
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"
Natanael Copa's avatar
Natanael Copa committed
14

Sören Tempel's avatar
Sören Tempel committed
15
_builddir="$srcdir"/$pkgname-$pkgver
Sören Tempel's avatar
Sören Tempel committed
16
build() {
Sören Tempel's avatar
Sören Tempel committed
17
	cd "$_builddir"
18 19 20 21
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
22 23 24 25 26
		--disable-dependency-tracking \
		--with-ipv6 \
		--with-pic \
		--with-optimization=0 \
		--with-cpu=i386_fpu \
27 28
		--with-audio="alsa oss" \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
29
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
30 31 32
}

package() {
Sören Tempel's avatar
Sören Tempel committed
33
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
34 35
	make DESTDIR="$pkgdir" install || return 1
}
36

Natanael Copa's avatar
Natanael Copa committed
37
sha512sums="5857fc91baf913e3116a808657d2246cf7662944a991652e53130b70464d821469c72574dff4d227c600276c0ec7e83990bdb99b6ce0144d167cc666f0a70789  mpg123-1.25.1.tar.bz2"