diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/libgusb/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
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 <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +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" |