From 8e61b2aa9d7063f5cef9fe4090a2572117858224 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 25 Apr 2018 13:51:50 +0000 Subject: libgusb: update to 0.2.11 --- abs/core/libgusb/PKGBUILD | 49 ++++++++++++++++++++++++++++++++--------------- 1 file 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 +# $Id$ +# Maintainer: Maxime Gauduin +# Contributor: Ionut Biru 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: -- cgit v0.12