# Description: A GTK+ bluetooth manager
# URL: https://github.com/blueman-project/blueman
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: bluez desktop-file-utils polkit python3-cython python3-gobject
# Optional: libayatana-appindicator

name=blueman
version=2.4.4
release=1
source=(https://github.com/blueman-project/$name/releases/download/$version/$name-$version.tar.xz)

build() {
  cd $name-$version

  sed -e 's/cython/cython3/g' -i configure

  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --with-dhcp-config=/etc/dhcpd/dhcpcd.conf \
    --libexecdir=/usr/lib/blueman \
    --disable-schemas-compile \
    --disable-nls \
    --disable-runtime-deps-check
  make
  make DESTDIR=$PKG install

  rm -r $PKG/usr/share/doc/
  rm -r $PKG/usr/lib/systemd/
}
