APKBUILD 958 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123
dai9ah's avatar
dai9ah committed
3
pkgver=1.25.10
Natanael Copa's avatar
Natanael Copa committed
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"
8
license="GPL-2.0 LGPL-2.0"
Natanael Copa's avatar
Natanael Copa committed
9
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
builddir="$srcdir"/$pkgname-$pkgver

Sören Tempel's avatar
Sören Tempel committed
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
Natanael Copa's avatar
Natanael Copa committed
29 30
}

Sören Tempel's avatar
Sören Tempel committed
31 32 33 34 35
check() {
	cd "$builddir"
	make check
}

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

dai9ah's avatar
dai9ah committed
41
sha512sums="a33666ae4aca7e7c1a93a6414d8c525ec19044c54f712d578180147d88e63033f7af2370b9ad22960cc3a0b454f15967b7a831cccc97e034c8855f70cdf1ab09  mpg123-1.25.10.tar.bz2"