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

Christian Hesse eworm at archlinux.org
Wed Dec 20 23:10:15 UTC 2017


    Date: Wednesday, December 20, 2017 @ 23:10:14
  Author: eworm
Revision: 275116

upgpkg: oath-toolkit 2.6.2-2

rebuild old packages

Modified:
  oath-toolkit/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-20 22:45:51 UTC (rev 275115)
+++ PKGBUILD	2017-12-20 23:10:14 UTC (rev 275116)
@@ -5,7 +5,7 @@
 
 pkgname=oath-toolkit
 pkgver=2.6.2
-pkgrel=1
+pkgrel=2
 pkgdesc='OATH one-time password toolkit'
 arch=('x86_64')
 url='http://www.nongnu.org/oath-toolkit/'
@@ -12,12 +12,23 @@
 license=('GPL3')
 depends=('glibc' 'pam' 'xmlsec')
 validpgpkeys=('9AA9BDB11BB1B99A21285A330664A76954265E8C') # Simon Josefsson
-source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
+source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
+        'oath-toolkit-update-gnulib.patch::https://gitlab.com/oath-toolkit/oath-toolkit/commit/2fffce2a471f74a585939c84cce16ef3015e5d3d.diff')
 sha256sums=('b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0'
-            'SKIP')
+            'SKIP'
+            'e3ca2ca2cc7e579ac5474bdaff1c77b0b567d4dffd73bf5bf4681a6c0319542c')
 
+prepare() {
+  cd $pkgname-$pkgver
+
+  patch -Np1 < "${srcdir}"/oath-toolkit-update-gnulib.patch
+  
+  autoreconf -fi
+}
+
 build() {
   cd $pkgname-$pkgver
+
   ./configure --prefix=/usr
   make
 }
@@ -24,14 +35,17 @@
 
 check() {
   cd $pkgname-$pkgver
+
   make check
 }
 
 package() {
   cd $pkgname-$pkgver
+
   make DESTDIR="$pkgdir" install
+
   # Install basic docs too
-  install -D -m 644 pam_oath/README "$pkgdir/usr/share/doc/$pkgname/PAM_README"
-  install -D -m 644 README "$pkgdir/usr/share/doc/$pkgname/README"
+  install -D -m 0644 pam_oath/README "$pkgdir/usr/share/doc/$pkgname/PAM_README"
+  install -D -m 0644 README "$pkgdir/usr/share/doc/$pkgname/README"
 }
 



More information about the arch-commits mailing list