From 8d4988effe465b2e1aab52640b377de7c05e60f3 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Thu, 24 Oct 2024 23:22:10 +0800 Subject: [PATCH] libpwquality 1.4.5-2 --- PKGBUILD | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index e7867fc..82675ba 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,42 +6,32 @@ # Maintainer: Future Linux Team pkgname=libpwquality pkgver=1.4.5 -pkgrel=1 +pkgrel=2 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') -makedepends=('python-wheel' 'python-setuptools' 'python-build' 'python-installer' 'python-flit-core') +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} + cd ${pkgname}-${pkgver} - ${CONFIGURE} \ - --disable-static \ - --with-securedir=/usr/lib64/security \ - --disable-python-bindings + ${CONFIGURE} \ + --disable-static \ + --enable-pam \ + --with-securedir=/usr/lib64/security \ + --with-python-binary=python3 make - - ( - cd python - - python3 -m build -nw - ) } package() { - cd ${pkgname}-${pkgver} + cd ${pkgname}-${pkgver} - make DESTDIR=${pkgdir} install + make DESTDIR=${pkgdir} install - ( - cd python - - python3 -m installer -d ${pkgdir} dist/*.whl - ) }