diff options
Diffstat (limited to 'abs/core/libgusb')
-rw-r--r-- | abs/core/libgusb/PKGBUILD | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/abs/core/libgusb/PKGBUILD b/abs/core/libgusb/PKGBUILD index 4c38e81..62252a9 100644 --- a/abs/core/libgusb/PKGBUILD +++ b/abs/core/libgusb/PKGBUILD @@ -1,27 +1,46 @@ -# $Id: PKGBUILD 198178 2013-10-30 13:16:56Z allan $ -# Maintainer: Ionut Biru <ibiru@archlinux.org> +# $Id$ +# Maintainer: Maxime Gauduin <alucryd@archlinux.org> +# Contributor: Ionut Biru <ibiru@archlinux.org> pkgname=libgusb -pkgver=0.1.6 +pkgver=0.2.11 pkgrel=1 -pkgdesc="GLib wrapper around libusb1" -arch=('i686' 'x86_64') -url="https://gitorious.org/gusb/" +pkgdesc='GObject wrapper for libusb1' +url='https://github.com/hughsie/libgusb' +arch=('x86_64') license=('LGPL2.1') -depends=('udev' 'libusbx') -makedepends=('gobject-introspection') -source=(http://people.freedesktop.org/~hughsient/releases/$pkgname-$pkgver.tar.xz) -sha256sums=('900103ff24a851ef8395b992236ced0aedb4c265ef2264f6ad8349300095198b') +depends=('glib2' 'glibc' 'libusb') +makedepends=('git' 'gobject-introspection' 'gtk-doc' 'python2' 'vala') +_commit='732b49b528cc69bf4c8999e088835ecab9d5c05c' +source=("git+https://github.com/hughsie/libgusb#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd libgusb + + git describe --tags | sed 's/^gusb_//;s/_/./g;s/-/+/g' +} + +prepare() { + cd libgusb + + NOCONFIGURE=1 ./autogen.sh +} build() { - cd $pkgname-$pkgver - ./configure --prefix=/usr --disable-static + cd libgusb + + ./configure \ + --prefix='/usr' \ + --enable-gtk-doc \ + --disable-static make } package() { - cd $pkgname-$pkgver - make DESTDIR="$pkgdir" install + cd libgusb + + make DESTDIR="${pkgdir}" install } -# vim:set ts=2 sw=2 et: +# vim: ts=2 sw=2 et: |