From c14372374a6cf8641be7a59a801ccf6b49daf077 Mon Sep 17 00:00:00 2001 From: Síle Ekaterin Liszka Date: Sun, 5 Nov 2023 19:52:43 -0800 Subject: user/libgusb: new package --- user/libgusb/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 user/libgusb/APKBUILD diff --git a/user/libgusb/APKBUILD b/user/libgusb/APKBUILD new file mode 100644 index 000000000..5e023dc49 --- /dev/null +++ b/user/libgusb/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Síle Ekaterin Liszka +# Maintainer: Síle Ekaterin Liszka +pkgname=libgusb +pkgver=0.4.7 +pkgrel=0 +pkgdesc="GObject-based wrapper for libusb" +url="https://github.com/hughsie/libgusb" +arch="all" +options="!check" # broken tests +license=""LGPL-2.1-only +depends="" +makedepends="meson ninja gi-docgen glib-dev gobject-introspection-dev json-glib-dev libusb-dev vala-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/hughsie/libgusb/releases/download/$pkgver/libgusb-$pkgver.tar.xz" + +build() { + meson setup \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --buildtype=release \ + --wrap-mode=nofallback \ + . output + meson compile -C output +} + +check() { + meson test -C output +} + +package() { + DESTDIR="$pkgdir" meson install -C output +} + +sha512sums="38f8d4989e3adc46013a9e8ca42511c5de9bbaf23a11654eb47d7c9a9c64b90f0213b77916f8ebd1e6c246aaafa0e1574bb72a19170ae9efa2af9e3f86a4e210 libgusb-0.4.7.tar.xz" -- cgit v1.2.3-70-g09d2