blob: 226f84b860fa1f1a8df1aa9a3042538335ce6875 (
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
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libgusb
pkgver=0.2.7
pkgrel=0
pkgdesc="GLib wrapper around libusb"
url="https://gitorious.org/gusb/"
arch="all"
license="LGPL"
depends=""
depends_dev="eudev-dev libusb-dev glib-dev gobject-introspection-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://people.freedesktop.org/~hughsient/releases/libgusb-$pkgver.tar.xz"
_builddir="$srcdir"/libgusb-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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="74d6bd12ef8662fccd27fe33f2839375 libgusb-0.2.7.tar.xz"
sha256sums="0be9578f7875cecb6c163ad47eb39bc6bf497e501b08986c0d384748a054c3ee libgusb-0.2.7.tar.xz"
sha512sums="9210ddc95458c452fa32c8e11849c6f44e24680485aafe93887a52266c8253e495e5f0584f25e3e67051bb00247d6b658cd2ff3f6a4da167a113974d8fefd5ac libgusb-0.2.7.tar.xz"
|