contrib/libpwquality/Pkgfile

30 lines
801 B
Plaintext
Raw Normal View History

# Description: Library for password quality checking and generating random passwords
# URL: https://github.com/libpwquality/libpwquality
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cracklib linux-pam python3
name=libpwquality
2022-11-19 16:15:13 +01:00
version=1.4.5
release=1
source=(https://github.com/libpwquality/libpwquality/releases/download/$name-$version/$name-$version.tar.bz2)
build() {
cd $name-$version
2022-11-19 16:15:13 +01:00
sed '/mr_IN/d' -i po/LINGUAS
2022-10-15 10:41:02 +02:00
autoreconf -fvi
export SETUPTOOLS_USE_DISTUTILS=stdlib
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-securedir=/lib/security \
2022-10-15 10:41:02 +02:00
--with-python-binary=/usr/bin/python3 \
--enable-pam \
--disable-nls
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2022-11-19 16:15:13 +01:00
make
make DESTDIR=$PKG install
}