aboutsummaryrefslogtreecommitdiffstats
path: root/community/libgusb/APKBUILD
blob: 84cebfa377707ce28f19919ef6c1a9d111ce9e1f (plain)
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
37
38
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libgusb
pkgver=0.2.9
pkgrel=1
pkgdesc="GLib wrapper around libusb"
url="https://github.com/hughsie/libgusb"
arch="all"
license="LGPL"
depends=""
depends_dev="eudev-dev gobject-introspection-dev"
makedepends="$depends_dev glib-dev libusb-dev gtk-doc"
subpackages="$pkgname-dev $pkgname-doc"
source="http://people.freedesktop.org/~hughsient/releases/libgusb-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="d4251e958aee7d19e39f8021e457942f  libgusb-0.2.9.tar.xz"
sha256sums="7320bdcd0ab1750d314fa86f48bd2cc186b9e33332314403779af9772fedde14  libgusb-0.2.9.tar.xz"
sha512sums="30e469e6c9561339a002089f732b3a60c02e285c0a166416a833c4c2475028a41c2339fcbc5ef1524b4be6fa09931e177067fa12231a145f1f05a324e343da9d  libgusb-0.2.9.tar.xz"