Date: Tuesday, July 25, 2017 @ 19:39:59 Author: alucryd Revision: 246366
upgpkg: lib32-libgusb 0.2.11-1 Modified: lib32-libgusb/trunk/PKGBUILD ----------+ PKGBUILD | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-07-25 19:07:12 UTC (rev 246365) +++ PKGBUILD 2017-07-25 19:39:59 UTC (rev 246366) @@ -4,7 +4,7 @@ # Contributor: josephgbr <[email protected]> pkgname=lib32-libgusb -pkgver=0.2.10 +pkgver=0.2.11 pkgrel=1 pkgdesc='GObject wrapper for libusb1' arch=('x86_64') @@ -11,12 +11,25 @@ url='https://github.com/hughsie/libgusb' license=('LGPL2.1') depends=('lib32-glib2' 'lib32-glibc' 'lib32-libusb' 'libgusb') -makedepends=('gcc-multilib' 'gobject-introspection' 'python2') -source=("https://people.freedesktop.org/~hughsient/releases/libgusb-${pkgver}.tar.xz") -sha256sums=('5c0442f5e00792bea939bbd16df09245740ae0d8b6ad9890d09189e1f4a3a17a') +makedepends=('gcc-multilib' 'git' 'gobject-introspection' 'gtk-doc' 'python2') +_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 libgusb-${pkgver} + cd libgusb export CC='gcc -m32' export CXX='g++ -m32' @@ -25,12 +38,13 @@ ./configure \ --prefix='/usr' \ --libdir='/usr/lib32' \ + --disable-gtk-doc \ --disable-static make } package() { - cd libgusb-${pkgver} + cd libgusb make DESTDIR="${pkgdir}" install rm -rf "${pkgdir}"/usr/{bin,include,share}
