summaryrefslogtreecommitdiff
path: root/repo/mpg123/mpg123.xibuild
blob: 85e71433ef2177f6c1d432842d283c5297b4bffa (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
#!/bin/sh

NAME="mpg123"
DESC="Console-based MPEG Audio Player for Layers 1, 2 and 3"

MAKEDEPS="libtool alsa-lib linux-headers"

PKG_VER=1.30.2
SOURCE="https://www.mpg123.org/download/mpg123-$PKG_VER.tar.bz2"

build() {
	./configure \
		--prefix=/usr \
		--disable-dependency-tracking \
		--with-pic \
		--with-optimization=0 \
		--with-cpu=i386_fpu \
		--with-audio="alsa oss"
	make
}

check() {
	make check
}

package() {
	# Installation is not parallel friendly and will fail
	# sometimes
	make -j1 DESTDIR="$PKG_DEST" install
}