APKBUILD 1.13 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpg123
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=1.22.4
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="A console based real time MPEG Audio Player for Layer 1, 2 and 3"
url="http://sourceforge.net/projects/mpg123"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9
license="GPL2 LGPL2"
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"
Natanael Copa's avatar
Natanael Copa committed
12
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2"
Natanael Copa's avatar
Natanael Copa committed
13
options="libtool"
Natanael Copa's avatar
Natanael Copa committed
14

Sören Tempel's avatar
Sören Tempel committed
15
build() {
Natanael Copa's avatar
Natanael Copa committed
16
	cd "$srcdir"/$pkgname-$pkgver
17 18 19 20
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
21 22 23 24 25
		--disable-dependency-tracking \
		--with-ipv6 \
		--with-pic \
		--with-optimization=0 \
		--with-cpu=i386_fpu \
26 27
		--with-audio="alsa oss" \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
28
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
29 30 31 32
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
33 34
	make DESTDIR="$pkgdir" install || return 1
}
35

Natanael Copa's avatar
Natanael Copa committed
36 37 38
md5sums="2dfafae3bbc532b4c8b04a77c6a6de89  mpg123-1.22.4.tar.bz2"
sha256sums="5069e02e50138600f10cc5f7674e44e9bf6f1930af81d0e1d2f869b3c0ee40d2  mpg123-1.22.4.tar.bz2"
sha512sums="d8552b3522fa58647cee7c43227737993851452a15dc6d3ae6948c6c62d4a8f6064e2b284f170413aa3f805a3f3e1a6f1faac7d19daddd25c6790863e4925212  mpg123-1.22.4.tar.bz2"