# Maintainer: PktSurf <smlinux@pktsurf.in>
app=blueman
version=2.1.4
build=1sml
homepage="https://github.com/blueman-project/blueman"
download="https://github.com/blueman-project/blueman/archive/refs/tags/$version.tar.gz"
desc="Graphical GTK+ Bluetooth Manager"
requires="py3cairo pygobject3 cython"

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

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

build() {
  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --disable-static \
    --enable-thunar-sendto \
    --enable-settings-integration \
    --disable-schemas-compile \
    --disable-pulseaudio

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  [[ -d $pkg/usr/lib/systemd ]] && rm -r $pkg/usr

  mkfinalpkg
}

sha512sums="
4c97002374015fba089f2d3721e3438a4375eba32abe90cf976a52f7d7e33eaa45660d92c827e81ad6b992eb63dc55ea4bb8a307dbe071d61317f022206c48e6  blueman-2.1.4.tar.lz
"
