Date: Wednesday, June 14, 2017 @ 16:21:52
  Author: arojas
Revision: 298821

Update to 1.6, needed by some AUR packages

Modified:
  libconfig/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-06-14 16:06:08 UTC (rev 298820)
+++ PKGBUILD    2017-06-14 16:21:52 UTC (rev 298821)
@@ -4,8 +4,8 @@
 # Contributor: see .contrib
 
 pkgname=libconfig
-pkgver=1.5
-pkgrel=3
+pkgver=1.6
+pkgrel=1
 pkgdesc="C/C++ Configuration File Library"
 arch=('i686' 'x86_64')
 url="http://hyperrealm.com/libconfig/libconfig.html";
@@ -12,18 +12,26 @@
 license=('LGPL')
 depends=('gcc-libs' 'texinfo')
 options=('!emptydirs' 'zipman')
-source=("http://www.hyperrealm.com/libconfig/$pkgname-$pkgver.tar.gz";)
-md5sums=('a939c4990d74e6fc1ee62be05716f633')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/hyperrealm/libconfig/archive/v$pkgver.tar.gz";)
+md5sums=('2ccd24b6a2ee39f7ff8a3badfafb6539')
 
+prepare() {
+  cd $pkgname-$pkgver
+
+# See: https://github.com/hyperrealm/libconfig/issues/47
+  rm lib/scanner.{c,h}
+  autoreconf -fvi
+}
+
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname-$pkgver
 
   ./configure --prefix=/usr
-  make
+  make -j1
 }
 
 package() {
-       cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname-$pkgver
 
   make DESTDIR="$pkgdir" install
   rm "$pkgdir/usr/share/info/dir"

Reply via email to