# Description: GObject bindings for libudev
# URL: https://wiki.gnome.org/Projects/libgudev
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gobject-introspection

name=libgudev
version=238
release=1
source=(https://download.gnome.org/sources/$name/$version/$name-$version.tar.xz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true

  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
