# Maintainer: Natanael Copa pkgname=mpg123 pkgver=1.25.4 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" # secfixes: # 1.25.4-r0: # - CVE-2017-9545 # - CVE-2017-11126 _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 } sha512sums="aea1f225f6addfea8a22cbe020f3216531b8e988d11cf5d588733e7ce22c03d4649df5ae3f596a0e15507e1d9f2c83a16a71affb479dd4156d270b0d23c2f072 mpg123-1.25.4.tar.bz2"