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

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Apr 15 13:13:56 UTC 2020


    Date: Wednesday, April 15, 2020 @ 13:13:56
  Author: svenstaro
Revision: 380368

upgpkg: zziplib 0.13.70-1

Also switch to cmake as per upstream suggestion.

Modified:
  zziplib/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++---------------
 1 file changed, 21 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-15 13:04:12 UTC (rev 380367)
+++ PKGBUILD	2020-04-15 13:13:56 UTC (rev 380368)
@@ -1,9 +1,10 @@
-# Maintainer: Rémy Oudompheng <remy at archlinux.org>
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Rémy Oudompheng <remy at archlinux.org>
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 # Contributor: Roman Kyrylych <Roman.Kyrylych at gmail.com>
 
 pkgname=zziplib
-pkgver=0.13.69
+pkgver=0.13.70
 pkgrel=1
 pkgdesc="A lightweight library that offers the ability to easily extract data from files archived in a single zip file"
 arch=('x86_64')
@@ -10,26 +11,31 @@
 url="http://zziplib.sourceforge.net"
 license=('LGPL' 'MPL')
 depends=('zlib')
-makedepends=('python2' 'xmlto' 'zip')
-source=($pkgname-$pkgver.tar.gz::"https://github.com/gdraheim/zziplib/archive/v$pkgver.tar.gz")
-sha256sums=('846246d7cdeee405d8d21e2922c6e97f55f24ecbe3b6dcf5778073a88f120544')
-sha512sums=('ade026289737f43ca92a8746818d87dd7618d473dbce159546ce9071c9e4cbe164a6b1c9efff16efb7aa0327b2ec6b34f3256c6bda19cd6e325703fffc810ef0')
+makedepends=('python' 'xmlto' 'zip' 'cmake')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/gdraheim/zziplib/archive/v$pkgver.tar.gz"
+        https://github.com/gdraheim/zziplib/commit/a46ac9630a46093eda88540a8ec705e6f53bcc4f.patch)
+sha256sums=('a1457262d7a237dc50ce1f98ca57242bc714055ff81146f419ee53cdea1bf029'
+            '6f24e770f858223f8321cc2a2df9fdab570290ac1a1279b6937988a0b460bca1')
+sha512sums=('5e6bed4993cac880063a64b56db42f362898434e9c61916747377440f1325f649c086a3c1beeb05fb647b4f8af3fcb0407b087fc23604cd73fdd2373f132e9a5'
+            '3e2e55bb7af0160dd0b1f0f10b9c41fbe68107c00a42bd6ab19a1a9b640371c751f5fc562f832668ba09b5cfc180b099e361c3747b0e22e80b496bff4f956b11')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  patch -Np1 -i "${srcdir}"/a46ac9630a46093eda88540a8ec705e6f53bcc4f.patch
+
+  mkdir build
+}
+
 build() {
-  cd ${pkgname}-${pkgver}
-  export PYTHON=/usr/bin/python2
-  ./configure --prefix=/usr
+  cd ${pkgname}-${pkgver}/build
+  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
   make
 }
 
 package() {
-  cd ${pkgname}-${pkgver}
+  cd ${pkgname}-${pkgver}/build
   make DESTDIR="${pkgdir}" install
-
-# fix permissions
-  chmod -s "${pkgdir}/usr/share/man/man3"
-# chmod 644 "${pkgdir}"/usr/share/man/man3/*
-  chown -R root:root "${pkgdir}/usr/share/man/man3"
 }
 
 # vim: set ts=2 sw=2 et:


More information about the arch-commits mailing list