# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libgudev
version=231
build=1sml
homepage="https://wiki.gnome.org/Projects/libgudev"
download="https://gitlab.gnome.org/GNOME/libgudev/-/archive/$version/libgudev-$version.tar.bz2"
desc="GObject bindings for libudev"
requires="glib git"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
08b50ffce99ef3f69537a7c921290a7eaba62fbbe7b9359d52edde151c46aa94e77bf01a174640fe8e5d40df6d142e5d14d9091e22346a67f4fcef71f74e1689  libgudev-231.tar.lz
"
