Date: Wednesday, March 29, 2017 @ 20:38:43 Author: heftig Revision: 291830
0.2.9-2 Modified: libgusb/trunk/PKGBUILD ----------+ PKGBUILD | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-03-29 20:35:57 UTC (rev 291829) +++ PKGBUILD 2017-03-29 20:38:43 UTC (rev 291830) @@ -5,20 +5,30 @@ pkgname=libgusb pkgver=0.2.9 pkgrel=2 -pkgdesc='GObject wrapper for libusb1' -arch=('i686' 'x86_64') -url='https://github.com/hughsie/libgusb' -license=('LGPL2.1') -depends=('glib2' 'glibc' 'libusb') -makedepends=('gobject-introspection' 'python2' 'vala' 'gtk-doc') -source=("https://people.freedesktop.org/~hughsient/releases/libgusb-${pkgver}.tar.xz") -sha256sums=('7320bdcd0ab1750d314fa86f48bd2cc186b9e33332314403779af9772fedde14') +pkgdesc="GObject wrapper for libusb1" +url="https://github.com/hughsie/libgusb" +arch=(i686 x86_64) +license=(LGPL2.1) +depends=(glib2 glibc libusb) +makedepends=(gobject-introspection python2 vala gtk-doc git) +_commit=1a9ae96944de71ca0898d820f2ff325e864c5162 # tags/gusb_0_2_9^0 +source=("git+https://github.com/hughsie/libgusb#commit=$_commit") +sha256sums=('SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/^gusb_//;s/_/./g;s/-/+/g' +} + +prepare() { + cd $pkgname + NOCONFIGURE=1 ./autogen.sh +} + build() { - cd libgusb-${pkgver} - + cd $pkgname ./configure \ - --prefix='/usr' \ + --prefix=/usr \ --enable-gtk-doc \ --disable-static make @@ -25,8 +35,7 @@ } package() { - cd libgusb-${pkgver} - + cd $pkgname make DESTDIR="${pkgdir}" install }