2024-10-16 01:17:49 +08:00
|
|
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
|
|
# then please put 'unknown'.
|
|
|
|
|
|
|
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
|
|
|
pkgname=libpwquality
|
|
|
|
pkgver=1.4.5
|
2024-10-24 23:22:10 +08:00
|
|
|
pkgrel=2
|
2024-10-16 01:17:49 +08:00
|
|
|
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' 'linux-pam' 'cracklib' 'python')
|
2024-10-24 23:22:10 +08:00
|
|
|
makedepends=('python-setuptools')
|
2024-10-16 01:17:49 +08:00
|
|
|
backup=(etc/security/pwquality.conf)
|
|
|
|
source=(https://github.com/libpwquality/libpwquality/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2)
|
|
|
|
sha256sums=(6fcf18b75d305d99d04d2e42982ed5b787a081af2842220ed63287a2d6a10988)
|
|
|
|
|
|
|
|
build() {
|
2024-10-24 23:22:10 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2024-10-16 01:17:49 +08:00
|
|
|
|
2024-10-24 23:22:10 +08:00
|
|
|
${CONFIGURE} \
|
|
|
|
--disable-static \
|
|
|
|
--enable-pam \
|
|
|
|
--with-securedir=/usr/lib64/security \
|
|
|
|
--with-python-binary=python3
|
2024-10-16 01:17:49 +08:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-10-24 23:22:10 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
2024-10-16 01:17:49 +08:00
|
|
|
|
2024-10-24 23:22:10 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
2024-10-16 01:17:49 +08:00
|
|
|
|
|
|
|
}
|