# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libopenal
version=1.20.1
build=1sml
homepage="https://openal-soft.org/"
desc="Cross-platform 3D audio API"
requires="gcc-libs nettle libcap"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf openal-soft-$version

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

build() {
  mkdir -p smbuild && cd smbuild
  cmake .. \
    -DCMAKE_INSTALL_PREFIX= \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_LIBDIR=lib

  make
  make install DESTDIR=$pkg

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
4b89ca3c3e50648ea019932725b4d65a21e22b984c7cc6b19455b689e2a9b64e9e5827731918213ccfaaa8e4ae21d767ba53d6c8c19f9ec76efef0bf5d8a8555  openal-soft-1.20.1.tar.lz
"
