summaryrefslogtreecommitdiff
path: root/user/libgusb/APKBUILD
blob: 5e023dc49096cd2d2f6db3cb148b8bbea724f62f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"