From c853ce5fb54ddd1925ba03f117663eb27e32d78e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 24 Dec 2019 19:55:32 +0100 Subject: [PATCH] libpwquality: unbreak cross and simplify. --- srcpkgs/libpwquality/template | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/srcpkgs/libpwquality/template b/srcpkgs/libpwquality/template index 3abd1eca48..1887ba58a0 100644 --- a/srcpkgs/libpwquality/template +++ b/srcpkgs/libpwquality/template @@ -4,7 +4,7 @@ version=1.4.2 revision=2 build_style=gnu-configure 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" conf_files="/etc/security/pwquality.conf" 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" checksum=5263e09ee62269c092f790ac159112aed3e66826a795e3afec85fdeac4281c8e -if [ "$CROSS_BUILD" ]; then - hostmakedepends+=" python3" - CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}" -fi +CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}" pre_configure() { - autoreconf -fi vsed -i python/Makefile.am -e 's|CFLAGS=.*|LDSHARED="${CC} -pthread -shared" &|g' + autoreconf -fi } libpwquality-devel_package() {