|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2010,2011,2015 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2010,2011,2015,2019 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-pwgen} |
|
|
|
|
VERSION=${VERSION:-2.07} |
|
|
|
|
VERSION=${VERSION:-2.08} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-http://downloads.sourceforge.net/pwgen/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -35,6 +35,7 @@ WGET=${WGET:-http://downloads.sourceforge.net/pwgen/$ARCHIVE}
|
|
|
|
|
NAMEPKG=${NAMEPKG:-pwgen} |
|
|
|
|
BUILD=${BUILD:-1GGD} |
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')} |
|
|
|
|
JOBS=${JOBS:-1} |
|
|
|
|
EXT=${EXT:-txz} |
|
|
|
|
|
|
|
|
|
# Directories |
|
|
|
@ -73,7 +74,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
|
fi |
|
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
|
|
# Compile |
|
|
|
@ -82,8 +83,8 @@ echo "Building $ARCHIVE..."
|
|
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
|
cd $NAME |
|
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
|
./configure --prefix=/usr |
|
|
|
|
make |
|
|
|
|
./configure --prefix=/usr --mandir=/usr/man |
|
|
|
|
make -j $JOBS |
|
|
|
|
install -D -s -m 755 pwgen $PKG/usr/bin/pwgen |
|
|
|
|
install -D -m 644 pwgen.1 $PKG/usr/man/man1/pwgen.1 |
|
|
|
|
gzip -9 $PKG/usr/man/man1/pwgen.1 |
|
|
|
|