APKBUILD 968 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123
Sören Tempel's avatar
Sören Tempel committed
3
pkgver=1.25.8
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"
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

Sören Tempel's avatar
Sören Tempel committed
41
sha512sums="f226317dddb07841a13753603fa13c0a867605a5a051626cb30d45cfba266d3d4296f5b8254f65b403bb5eef6addce1784ae8829b671a746854785cda1bad203  mpg123-1.25.8.tar.bz2"