jobcore/cracklib/PKGBUILD

46 lines
1.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cracklib
pkgver=2.9.11
pkgrel=01
pkgdesc="Password Checking Library"
url="https://github.com/cracklib/cracklib"
depends=('glibc' 'zlib')
source=(https://github.com/cracklib/cracklib/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --sbindir=/usr/bin --without-python
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# symlink cracklib-small #34778
mkdir -p "$pkgdir"/usr/share/dict
ln -sf /usr/share/cracklib/cracklib-small "$pkgdir"/usr/share/dict/cracklib-small
sh ./util/cracklib-format dicts/cracklib-small \
| sh ./util/cracklib-packer "$pkgdir"/usr/share/cracklib/pw_dict
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
sha256sums=(6213b986a5209fc0d4ca93734e349b8f66b36bfe9a3fae6eead14a15d82a68dc) # cracklib-2.9.11.tar.gz
## 0741f6bdafc6ae204017e52ea766da14b0e712e09d947d0aa6f98e2fba8f6840 cracklib-2.9.11-01-x86_64.pkg.tar.lz