pkgname=libpwquality pkgver=1.4.5 pkgrel=1 pkgdesc="Library for password quality checking and generating random passwords" arch=('x86_64') url="https://github.com/libpwquality/libpwquality" license=('BSD-3-Clause OR GPL-2.0-or-later') depends=('glibc' 'cracklib' 'linux-pam') makedepends=('python-setuptools') backup=(etc/security/pwquality.conf) source=(https://github.com/libpwquality/libpwquality/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2) sha256sums=(6fcf18b75d305d99d04d2e42982ed5b787a081af2842220ed63287a2d6a10988) build() { cd ${pkgname}-${pkgver} local configure_args=( --disable-static --with-securedir=/usr/lib64/security --with-python-binary=python3 --with-pythonsitedir=$(python3 -c "import site; print(site.getsitepackages()[0])") ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }