aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpg123/APKBUILD
blob: 9d07ffe3dfacb39d98172b3716ad02af8bbed198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123
pkgver=1.23.7
pkgrel=0
pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3"
url="http://www.mpg123.org/"
arch="all"
license="GPL2 LGPL2"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends="libtool alsa-lib-dev linux-headers"
source="http://www.mpg123.org/download/$pkgname-$pkgver.tar.bz2"
options="libtool"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-dependency-tracking \
		--with-ipv6 \
		--with-pic \
		--with-optimization=0 \
		--with-cpu=i386_fpu \
		--with-audio="alsa oss" \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="094236080f5ab213a2aa606df880af8c  mpg123-1.23.7.tar.bz2"
sha256sums="934047120953159e364c790e059684b681d7e670884fe179e1954d17d1c6334b  mpg123-1.23.7.tar.bz2"
sha512sums="f63e8f6849447c1b3821e032908c2f7c2c78fa68869bbbb909c4ac9f8732387e5be2440e2f40e349dc103306eed56c409d4f5dd10aaea08ba18dca49a677bf2f  mpg123-1.23.7.tar.bz2"