APP=mpg123
VERSION=1.26.1
BUILD=1sml
HOMEPAGE='https://www.mpg123.de/'
DOWNLOAD='https://downloads.sourceforge.net/mpg123/mpg123-1.26.1.tar.bz2'
DESC="MPEG audio player for UNIX"
REQUIRES="gcc-libs alsa-lib portaudio"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
ddea0573ea6a8f47003af48eabb8e57d9e56ea0a6a1d73046b6484a7a4b12f84572c066c9dcd41a1dfaa4f9d92bfb7bd809c07b00425be9a1dd6cd5efccc6827  mpg123-1.26.1.tar.lz
"
