summaryrefslogtreecommitdiffstats
path: root/system/pwgen/pwgen.SlackBuild
diff options
context:
space:
mode:
author Timothy Pollard2016-01-06 01:22:21 +0100
committer Willy Sudiarto Raharjo2016-01-09 01:12:22 +0100
commit9db6dade141be2107dd1a417249416ebdaf4b0ac (patch)
tree32d021ee9c1a87f5ff4f7df710003adef6f435a7 /system/pwgen/pwgen.SlackBuild
parentda799258d2974fd6496c7a9fbdf2668cd9481d3d (diff)
downloadslackbuilds-9db6dade141be2107dd1a417249416ebdaf4b0ac.tar.gz
system/pwgen: Updated for version 2.07.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/pwgen/pwgen.SlackBuild')
-rw-r--r--system/pwgen/pwgen.SlackBuild19
1 files changed, 8 insertions, 11 deletions
diff --git a/system/pwgen/pwgen.SlackBuild b/system/pwgen/pwgen.SlackBuild
index 3ae97d08b1..77872706c6 100644
--- a/system/pwgen/pwgen.SlackBuild
+++ b/system/pwgen/pwgen.SlackBuild
@@ -30,7 +30,7 @@
# No additional license terms added
APP=pwgen
-VERSION=2.06
+VERSION=${VERSION:-2.07}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -73,7 +73,7 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -86,19 +86,16 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man || exit 1
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ); do
- ln -s $( readlink $i ).gz $i.gz;
- rm $i;
- done
-)
+mv $PKG/usr/share/man $PKG/usr/man
+rm -rf $PKG/usr/share
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$APP-$VERSION
-cp -t $PKG/usr/doc/$APP-$VERSION ChangeLog
cp $CWD/$APP.SlackBuild $PKG/usr/doc/$APP-$VERSION/
find $PKG/usr/doc/$APP-$VERSION -type f -exec chmod 644 {} \;