aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpg123/APKBUILD
blob: dd07ed72d53ef3daf83ba6d670e1ac896f98dbb8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123
pkgver=1.22.3
pkgrel=0
pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3"
url="http://sourceforge.net/projects/mpg123"
arch="all"
license="GPL2 LGPL2"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends="libtool alsa-lib-dev linux-headers"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2"
options="libtool"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./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 "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="fca857bc5ad0d2070cd38bd5f0f85f1c  mpg123-1.22.3.tar.bz2"
sha256sums="23d2a843c3efc746a326eb4e56d5488b4c67fa6c3c7c71f4d26d98ee4c1f5c2d  mpg123-1.22.3.tar.bz2"
sha512sums="b0190e85710b810700b55ccf2cdd0b1a1af2ca5d30503b4f82f38f3b70f7a38d5a4ae668a9354159f78a0aa3571e8101cdd501c3ce68212e7f442d9f3c987d1c  mpg123-1.22.3.tar.bz2"