# Maintainer: PktSurf <smlinux@pktsurf.in>
app=mpg123
version=1.26.1
build=1sml
homepage="https://www.mpg123.de/"
download="https://downloads.sourceforge.net/mpg123/mpg123-$version.tar.bz2"
desc="MPEG audio player for UNIX"
requires="gcc-libs alsa-lib portaudio"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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