[arch-commits] Commit in lib32-libgusb/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Tue Jul 3 11:47:20 UTC 2018


    Date: Tuesday, July 3, 2018 @ 11:47:20
  Author: alucryd
Revision: 350872

upgpkg: lib32-libgusb 0.3.0-1

Modified:
  lib32-libgusb/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++-------------------------
 1 file changed, 11 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-03 11:46:41 UTC (rev 350871)
+++ PKGBUILD	2018-07-03 11:47:20 UTC (rev 350872)
@@ -4,49 +4,35 @@
 # Contributor: josephgbr <rafael.f.f1 at gmail.com>
 
 pkgname=lib32-libgusb
-pkgver=0.2.11
+pkgver=0.3.0
 pkgrel=1
 pkgdesc='GObject wrapper for libusb1'
 arch=('x86_64')
 url='https://github.com/hughsie/libgusb'
 license=('LGPL2.1')
-depends=('lib32-glib2' 'lib32-glibc' 'lib32-libusb' 'libgusb')
-makedepends=('gcc-multilib' 'git' 'gobject-introspection' 'gtk-doc' 'python2')
-_commit='732b49b528cc69bf4c8999e088835ecab9d5c05c'
-source=("git+https://github.com/hughsie/libgusb#commit=$_commit")
+depends=('lib32-glib2' 'lib32-libusb' 'libgusb')
+makedepends=('git' 'gobject-introspection' 'gtk-doc' 'meson' 'python2' 'vala')
+source=("git+https://github.com/hughsie/libgusb#tag=${pkgver}")
 sha256sums=('SKIP')
 
-pkgver() {
-  cd libgusb
-
-  git describe --tags | sed 's/^gusb_//;s/_/./g;s/-/+/g'
-}
-
 prepare() {
-  cd libgusb
-
-  NOCONFIGURE=1 ./autogen.sh
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
 }
 
 build() {
-  cd libgusb
-
   export CC='gcc -m32'
   export CXX='g++ -m32'
   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
 
-  ./configure \
-    --prefix='/usr' \
-    --libdir='/usr/lib32' \
-    --disable-gtk-doc \
-    --disable-static
-  make
+  arch-meson libgusb build --libdir='/usr/lib32'
+  ninja -C build
 }
 
 package() {
-  cd libgusb
-
-  make DESTDIR="${pkgdir}" install
+  DESTDIR="${pkgdir}" ninja -C build install
   rm -rf "${pkgdir}"/usr/{bin,include,share}
 }
 



More information about the arch-commits mailing list