APKBUILD 969 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123
prspkt's avatar
prspkt committed
3
pkgver=1.25.11
4
pkgrel=0
dai9ah's avatar
dai9ah committed
5 6
pkgdesc="Console-based MPEG Audio Player for Layers 1, 2 and 3"
url="http://www.mpg123.org"
7
arch="all"
prspkt's avatar
prspkt committed
8 9
license="LGPL-2.1-only"
subpackages="$pkgname-libs $pkgname-dev $pkgname-doc"
10
depends=""
11
makedepends="libtool alsa-lib-dev linux-headers"
12
source="http://www.mpg123.org/download/$pkgname-$pkgver.tar.bz2"
13
options="libtool"
14 15
builddir="$srcdir"/$pkgname-$pkgver

16
build() {
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"
	make
29 30
}

31 32 33 34 35
check() {
	cd "$builddir"
	make check
}

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

prspkt's avatar
prspkt committed
41
sha512sums="986338d0f4829ec9e40990cb384746c7abfa80d3b3d5656b6dda73d03e2441c1f28ffbe7f3f82b0008a1c4ebcfa07aeffb493e95f13f7d04cbc818a09f1008ed  mpg123-1.25.11.tar.bz2"