# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libcddb
version=1.3.2
build=1sml
homepage="https://sourceforge.net/projects/libcddb/"
download="https://sourceforge.net/projects/libcddb/files/libcddb/$version/libcddb-$version.tar.bz2"
desc="library to access CDDB data from different protocols such as CDDBP, HTTP, SMTP"
requires="musl"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
f1b512f953fa494cea09eddff451efd9291b49bd268df699d5dd609f113d153ddcf08fdd7d261287829b0dc2b527cb91838c7b603fd2f3a3a453d96850b289e7  libcddb-1.3.2.tar.lz
"
