diff options
Diffstat (limited to 'system/pwgen/pwgen.SlackBuild')
-rw-r--r-- | system/pwgen/pwgen.SlackBuild | 19 |
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 {} \; |