APP=libcddb
VERSION=1.3.2
BUILD=1sml
HOMEPAGE='https://sourceforge.net/projects/libcddb/'
DOWNLOAD="https://sourceforge.net/projects/libcddb/files/libcddb/1.3.2/libcddb-1.3.2.tar.bz2"
DESC="library to access CDDB data from different protocols such as CDDBP, HTTP, SMTP"
REQUIRES="musl"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static \
    $BUILDDIST

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

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