|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2017 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2017,2019 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-libpwquality}
|
|
|
|
|
VERSION=${VERSION:-1.4.0}
|
|
|
|
|
VERSION=${VERSION:-1.4.2}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
|
|
|
|
|
WGET=${WGET:-https://github.com/libpwquality/libpwquality/releases/download/libpwquality-$VERSION/$ARCHIVE}
|
|
|
|
|
|
|
|
|
@ -98,6 +98,23 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
make -j $JOBS
|
|
|
|
|
make install-strip DESTDIR=$PKG
|
|
|
|
|
|
|
|
|
|
# Now build the Python 3 module. The build system does not
|
|
|
|
|
# support VPATH builds, so we need to clean up the previous
|
|
|
|
|
# build and configure again in the same directory.
|
|
|
|
|
make distclean
|
|
|
|
|
CFLAGS=$CPUOPT \
|
|
|
|
|
CXXFLAGS=$CPUOPT \
|
|
|
|
|
./configure \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \
|
|
|
|
|
--mandir=/usr/man \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
|
--with-python-binary=python3 \
|
|
|
|
|
--build=$ARCH-slackware-linux
|
|
|
|
|
make -j $JOBS
|
|
|
|
|
make -C python install-strip DESTDIR=$PKG
|
|
|
|
|
|
|
|
|
|
# Compress man pages
|
|
|
|
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
|
|
|
rmdir $PKG/usr/man/man8
|
|
|
|
|