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

Jan de Groot jgc at archlinux.org
Mon Feb 13 12:34:19 UTC 2017


    Date: Monday, February 13, 2017 @ 12:34:18
  Author: jgc
Revision: 288872

upgpkg: libpwquality 1.3.0-2

Update to git snapshot
Upstream retags the release on every commit, so raise pkgrel by hand. Keep 1.3.0 as version
Remove mr_IN translations to make this build. They are missing from git and the files I found in the old release are 100% untranslated anyways
Add configuration directory
Add configuration file to backup array (FS#52576)

Modified:
  libpwquality/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-13 11:02:11 UTC (rev 288871)
+++ PKGBUILD	2017-02-13 12:34:18 UTC (rev 288872)
@@ -3,19 +3,32 @@
 
 pkgname=libpwquality
 pkgver=1.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Library for password quality checking and generating random passwords"
 arch=('i686' 'x86_64')
-url="https://fedorahosted.org/libpwquality/"
+url="https://github.com/libpwquality/libpwquality"
 license=('GPL')
 depends=('cracklib' 'pam')
 optdepends=('python2: Python bindings')
-makedepends=('python2')
-source=(https://fedorahosted.org/releases/l/i/libpwquality/$pkgname-$pkgver.tar.bz2)
-md5sums=('2a3d4ba1d11b52b4f6a7f39622ebf736')
+makedepends=('python2' git)
+backup=('etc/security/pwquality.conf')
+_commit=6e95824d07660d3c3a8d11252cf5a033f2d189d5  # master
+source=("git+https://github.com/libpwquality/libpwquality.git#commit=$_commit")
+md5sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^libpwquality-//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+  sed '/mr_IN/d' -i po/LINGUAS
+}
+
 build() {
-    cd "$pkgname-$pkgver"
+    cd "$pkgname"
     ./configure --prefix=/usr \
         --sysconfdir=/etc \
         --localstatedir=/var \
@@ -26,6 +39,7 @@
 }
 
 package() {
-    cd "$pkgname-$pkgver"
+    cd "$pkgname"
     make DESTDIR="$pkgdir" install
+    install -m755 -d "$pkgdir"/etc/security/pwquality.conf.d
 }



More information about the arch-commits mailing list