# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xdg-dbus-proxy
version=0.1.2
build=1sml
homepage="https://github.com/flatpak/xdg-dbus-proxy"
download="https://github.com/flatpak/xdg-dbus-proxy/archive/refs/tags/$version.tar.gz"
desc="filtering proxy for D-Bus connections"
requires="glib util-linux dbus "

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

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

  applypatch $srcdir/musl-macros.patch
}

build() {
  ./configure \
    --prefix= \
    --disable-man

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
23056cd8e4b08daff96372c0aa11831e9418e832cfb5e2ebd23fb0aef0de09a2603ccbc79d88e21beeae8e014139c47fb54ab70af2bfb2a00bec3c1960958abf  xdg-dbus-proxy-0.1.2.tar.lz
96551f8a188ba42f44c31a3fb4ad5df5a993ea3742116dfd1b2f8fdddae6cfd68fa38a56c473c748b2fead681469a76b60b87b2ffa5fbf5a2583e9df1845e55c  musl-macros.patch
"
