aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpg123/APKBUILD
blob: da3ec4a10c3ec1e7ae826037d9aa4fdb0807b5f2 (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.20.0
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="pkgconfig libtool alsa-lib-dev"
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="f48152446eb1e8b78234d4a42c5fa263  mpg123-1.20.0.tar.bz2"
sha256sums="a97c85f212fade0728d2d641190907935d4b03028ba200d1576f4f6786578503  mpg123-1.20.0.tar.bz2"
sha512sums="1ebb01ce8f8745a36c4b32ce4f4ec9036af36f18de08633425cb38038cc2bee5fbe3afbeb2deaa7251d0b0f28d2c5ceb41f82625417ec037a0e529facdd1ac17  mpg123-1.20.0.tar.bz2"