libpwquality: fixed build

This commit is contained in:
Tim Biermann 2022-10-15 10:41:02 +02:00
parent 05dc336a31
commit 1ef2344b75
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3zbnxtZkB6ruaLGemLyVHOmiQW5Kc9Ryc03ucp98F91Xil/2IqC1ZLTAPIM21NG9LqfA7t3SuDBCjr8dg0hcbwM=
SHA256 (Pkgfile) = f8388fb8269384c4f165d6d9477881576a99dda41d39626c27981d1dd5f155cf
RWSagIOpLGJF39LS4L3c0Ua8P5e3j3VEM5rvghs16U73JRCB15RFEhyTsrhbJ7Jbz5pFfIGNiDBJdeHR97QQ/F8Pa5/ohk9L7AI=
SHA256 (Pkgfile) = e442b895615300eb887da982923446af1e510f57654a10c5dc6ee1814ba32eed
SHA256 (.footprint) = 346af73011aebe2631df41edbe6b17ca5508537d340fbc87ac1ad739169f5efd
SHA256 (libpwquality-1.4.4.tar.bz2) = d43baf23dc6887fe8f8e9b75cabaabc5f4bbbaa0f9eff44278d276141752a545

View File

@ -5,18 +5,21 @@
name=libpwquality
version=1.4.4
release=1
release=2
source=(https://github.com/libpwquality/libpwquality/releases/download/$name-$version/$name-$version.tar.bz2)
build() {
cd $name-$version
sed '/mr_IN/d' -i po/LINGUAS
autoreconf -fvi
export SETUPTOOLS_USE_DISTUTILS=stdlib
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-securedir=/lib/security \
--with-python-binary=/usr/bin/python3 \
--enable-pam \
--with-python-binary=python3 \
--disable-nls
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make