# Description: GObject wrapper for libusb1
# URL: https://github.com/hughsie/libgusb
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gobject-introspection json-glib

name=libgusb
version=0.4.6
release=1
source=(https://github.com/hughsie/libgusb/archive/$version/$name-$version.tar.gz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true \
    -D vapi=false \
    -D tests=false \
    -D docs=false
  meson compile -C build
  DESTDIR=$PKG meson install -C build
}
