# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libcanberra
version=0.30
build=2sml
homepage="https://0pointer.de/lennart/projects/libcanberra/"
download="https://0pointer.de/lennart/projects/libcanberra/libcanberra-$version.tar.xz"
desc="A small and lightweight implementation of the XDG Sound Theme Specification"
requires="alsa-lib libtool libvorbis gtk2 gtk3"

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

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

build() {
  ./configure \
    --prefix= \
    --docdir="/share/doc/$app-$version" \
    --disable-oss \
    --disable-static

  make
  make -j1 install DESTDIR=$pkg

  cp LGPL $pkgdocs/LICENSE

  mkfinalpkg
}

sha512sums="
2f696bab17009e63a80335c8a4a56ca3dc7eef04232148a2e6cd4b56140dd1c3a5e5ccecd0d5178cb24a6534e5ce03cf39981defc02f20ce050f3cac3e1e7896  libcanberra-0.30.tar.lz
"
