mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libpwquality: unbreak cross and simplify.
This commit is contained in:
parent
518882a7a6
commit
c853ce5fb5
1 changed files with 3 additions and 6 deletions
|
@ -4,7 +4,7 @@ version=1.4.2
|
||||||
revision=2
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
|
configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
|
||||||
hostmakedepends="libtool automake gettext-devel"
|
hostmakedepends="libtool automake gettext-devel python3-devel"
|
||||||
makedepends="cracklib-devel pam-devel python3-devel"
|
makedepends="cracklib-devel pam-devel python3-devel"
|
||||||
conf_files="/etc/security/pwquality.conf"
|
conf_files="/etc/security/pwquality.conf"
|
||||||
short_desc="Library for password quality checking and generating random passwords"
|
short_desc="Library for password quality checking and generating random passwords"
|
||||||
|
@ -15,14 +15,11 @@ changelog="https://raw.githubusercontent.com/libpwquality/libpwquality/master/NE
|
||||||
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
|
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
|
||||||
checksum=5263e09ee62269c092f790ac159112aed3e66826a795e3afec85fdeac4281c8e
|
checksum=5263e09ee62269c092f790ac159112aed3e66826a795e3afec85fdeac4281c8e
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||||
hostmakedepends+=" python3"
|
|
||||||
CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
|
||||||
vsed -i python/Makefile.am -e 's|CFLAGS=.*|LDSHARED="${CC} -pthread -shared" &|g'
|
vsed -i python/Makefile.am -e 's|CFLAGS=.*|LDSHARED="${CC} -pthread -shared" &|g'
|
||||||
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
|
|
||||||
libpwquality-devel_package() {
|
libpwquality-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue