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

Laurent Carlier lcarlier at archlinux.org
Mon Mar 13 15:03:15 UTC 2017


    Date: Monday, March 13, 2017 @ 15:03:14
  Author: lcarlier
Revision: 216090

upgpkg: libsigrok 0.4.0-4

libzip 1.2 rebuild

Modified:
  libsigrok/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++------
 1 file changed, 25 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-13 14:55:12 UTC (rev 216089)
+++ PKGBUILD	2017-03-13 15:03:14 UTC (rev 216090)
@@ -1,22 +1,41 @@
+# $Id$
 # Maintainer: Thomas Krug <t.krug at elektronenpumpe.de>
 # Contributor: Thomas Krug <t.krug at elektronenpumpe.de>
 
 pkgname=libsigrok
 pkgver=0.4.0
-pkgrel=3
+pkgrel=4
 pkgdesc='Client software that supports various hardware logic analyzers, core library'
 arch=(i686 x86_64)
-url='http://www.sigrok.org/wiki/Libsigrok'
+url='https://www.sigrok.org/wiki/Libsigrok'
 license=(GPL3)
 depends=(libftdi libserialport glibmm libzip libieee1284)
-makedepends=(doxygen swig python pygobject-devel python-numpy python-setuptools)
+makedepends=(swig python pygobject-devel python-numpy python-setuptools
+             cmake python2) # for doxygen-1.8.12
 optdepends=('python')
-source=(http://sigrok.org/download/source/libsigrok/libsigrok-$pkgver.tar.gz)
-sha1sums=('6d57bea676ce60b6591162c45854ede6f9d8ceb9')
+source=(https://sigrok.org/download/source/libsigrok/libsigrok-$pkgver.tar.gz
+        https://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.12.src.tar.gz)
+sha1sums=('6d57bea676ce60b6591162c45854ede6f9d8ceb9'
+          'eacf83859a5bd7f3f71b46f34759cefe1a05babc')
 
+# libsigrok fail to build with doxygen-1.8.13 (segfault)
+prepare() {
+  cd "$srcdir/doxygen-1.8.12"
+  rm -rf build && mkdir build && cd build
+  cmake ../ \
+    -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+    -DPYTHON_EXECUTABLE:FILE=/usr/bin/python2 \
+    -Dbuild_doc:BOOL=OFF \
+    -Dbuild_wizard:BOOL=OFF
+  make
+  make DESTDIR="$srcdir" install
+}
+
 build() {
   cd libsigrok-$pkgver
-  ./configure --prefix=/usr --disable-ruby --disable-java
+  # our doxygen executable
+  export PATH=$PATH:"$srcdir"/usr/bin
+ ./configure --prefix=/usr --disable-ruby --disable-java
   make
 }
 


More information about the arch-commits mailing list