# Contributor: Leo # Maintainer: Natanael Copa pkgname=mpg123 pkgver=1.31.3 pkgrel=1 pkgdesc="Console-based MPEG Audio Player for Layers 1, 2 and 3" options="libtool" url="https://www.mpg123.org" arch="all" license="LGPL-2.1-only" subpackages="$pkgname-libs $pkgname-dev $pkgname-doc" makedepends="libtool alsa-lib-dev linux-headers" source="https://www.mpg123.org/download/mpg123-$pkgver.tar.bz2" build() { CFLAGS="$CFLAGS -flto=auto" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --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="$pkgdir" install } sha512sums=" 5dd550e06f5d0d432cac1b7e546215e56378b44588c1a98031498473211e08bc4228de45be41f7ba764f7f6c0eb752a6501235bcc3712c9a8d8852ae3c607d98 mpg123-1.31.3.tar.bz2 "