# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libcdio
version=2.1.0
build=1sml
homepage="https://www.gnu.org/software/libcdio/"
download="http://git.savannah.gnu.org/cgit/libcdio.git/snapshot/libcdio-release-$version.tar.gz"
desc="Library to access data from various CD-ROM image formats"
requires="gcc-libs netbsd-curses libcddb"

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

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

build() {
  ./configure \
    --prefix= \
    --disable-vcd-info \
    --disable-static \
    --enable-cpp-progs

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
eb939751e6f2066dd83ee353f247aeb73bb04328de1e322e73534b764f541213f8bb20c2d66da6d244ed4cd4240955881e4d86f19e8576cbe875f0a8d537a788  libcdio-2.1.0.tar.lz
"
