APP=libcue
VERSION=2.2.1
BUILD=1sml
HOMEPAGE='https://github.com/lipnitsk/libcue/'
DOWNLOAD='https://github.com/lipnitsk/libcue/archive/refs/tags/v2.2.1.tar.gz'
DESC="library to parse and extract data from CUE sheets"
REQUIRES="musl"

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

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions
  
  mkdir -p smbuild && cd smbuild

  cmake .. \
   -DCMAKE_INSTALL_PREFIX="" \
   -DCMAKE_INSTALL_LIBDIR=lib \
   -DBUILD_SHARED_LIBS=ON

  make
  make install DESTDIR=$PKG

  cp ../LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
36a86bbff7a944666949d1f468799c8607bfa2e4f5227684dfc8928072793089db30f99163a8596af01f1909baccdc1b1f134d9cb29cb6d39b3061bacfb82f8d  libcue-2.2.1.tar.lz
"
