blob: 74b4f51850ed9142580a4c8872336ebe1420dcf7 (
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
50
51
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libgusb
pkgver=0.1.6
pkgrel=1
pkgdesc="GLib wrapper around libusb"
url="https://gitorious.org/gusb/"
arch="all"
license="LGPL"
depends=""
depends_dev="udev-dev libusbx-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
update_config_sub
}
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
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="672058e7a49a38259ab6ea01470c2fa2 libgusb-0.1.6.tar.xz"
sha256sums="900103ff24a851ef8395b992236ced0aedb4c265ef2264f6ad8349300095198b libgusb-0.1.6.tar.xz"
sha512sums="3e5da2d4683ec787dae5282ba750b23d7b79e8dde60a98c4f7d6ca26892b365733c090d475ec385a8adc8a49ecad0914fbcd02713bbe2fdf353f87c0c7aa9938 libgusb-0.1.6.tar.xz"
|