summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-04-25 13:51:50 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-04-25 13:51:50 (GMT)
commit8e61b2aa9d7063f5cef9fe4090a2572117858224 (patch)
tree69bcea0c6f8bbb5372969cd65341c87ba72b2d1f /abs
parent1e161b8a5cd0c40d50951579e9dd77934411bdfd (diff)
downloadlinhes_pkgbuild-8e61b2aa9d7063f5cef9fe4090a2572117858224.zip
linhes_pkgbuild-8e61b2aa9d7063f5cef9fe4090a2572117858224.tar.gz
linhes_pkgbuild-8e61b2aa9d7063f5cef9fe4090a2572117858224.tar.bz2
libgusb: update to 0.2.11
Diffstat (limited to 'abs')
-rw-r--r--abs/core/libgusb/PKGBUILD49
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: