aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpg123/APKBUILD
blob: b78d7436f9714d88c69c37ac934b657f2fad1e26 (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.5
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="6a318579dd7b52c5851bb7950af969ac  mpg123-1.23.5.tar.bz2"
sha256sums="b658df672813511ff9b68a1553917220b675067204cdb58dbb59a2b8179350b2  mpg123-1.23.5.tar.bz2"
sha512sums="be9009f5944a6980f5c4b5e1c931f41260ab9ac584bf769632b62322dd35e4b243e038ca106631f4b70643ae97f8d198a732675b3b77719f49e7381e6fced66a  mpg123-1.23.5.tar.bz2"