diff options
author | Síle Ekaterin Liszka <sheila@vulpine.house> | 2023-11-05 19:52:43 -0800 |
---|---|---|
committer | Síle Ekaterin Liszka <sheila@vulpine.house> | 2023-11-08 16:33:29 -0800 |
commit | c14372374a6cf8641be7a59a801ccf6b49daf077 (patch) | |
tree | 403ae956b29cbdcef6de906823ad2585b36bb43e | |
parent | 12d5ddf74f72315309f73ede62f803acc352ab2d (diff) | |
download | packages-c14372374a6cf8641be7a59a801ccf6b49daf077.tar.gz packages-c14372374a6cf8641be7a59a801ccf6b49daf077.tar.bz2 packages-c14372374a6cf8641be7a59a801ccf6b49daf077.tar.xz packages-c14372374a6cf8641be7a59a801ccf6b49daf077.zip |
user/libgusb: new package
-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" |