diff options
author | Zbigniew Baniewski <Zbigniew [dot] Baniewski [at] gmail [dot] com> | 2022-09-08 22:20:33 +0100 |
---|---|---|
committer | Dave Woodfall <dave@slackbuilds.org> | 2022-09-08 22:20:33 +0100 |
commit | 9bd2d4882c4305eaf6c4b92c3feb8cf5705b8036 (patch) | |
tree | bc58bce4aaecde9767c9a04106a91c1568d18f23 /development/4th/4th.SlackBuild | |
parent | f3528ad44c025dca731e12ae3cb13875a28da5a1 (diff) |
development/4th: Updated for version 3.64.1.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'development/4th/4th.SlackBuild')
-rw-r--r-- | development/4th/4th.SlackBuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/development/4th/4th.SlackBuild b/development/4th/4th.SlackBuild index 227cdc7070968..787982fb89e8b 100644 --- a/development/4th/4th.SlackBuild +++ b/development/4th/4th.SlackBuild @@ -4,13 +4,11 @@ # Written by Zbigniew Baniewski <Zbigniew [dot] Baniewski [at] gmail [dot] com> -# 20220407 bkw: Modified by SlackBuilds.org, BUILD=2: fix doc permissions. - cd $(dirname $0) ; CWD=$(pwd) PRGNAM=4th -VERSION=${VERSION:-3.62.5} -BUILD=${BUILD:-2} +VERSION=${VERSION:-3.64.1} +BUILD=${BUILD:-0} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -50,10 +48,10 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION-unix +rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION-unix.tar.gz cat $CWD/01-directories.patch | patch -p0 || exit -cd $PRGNAM-$VERSION-unix/sources +cd $PRGNAM-$VERSION/sources chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -63,7 +61,6 @@ find -L . \ if [ "$ARCH" = "x86_64" ]; then cat $CWD/02-to_preserve_32bit_compatibility.patch | patch -p2 || exit - cp include/* . fi mkdir -p $PKG/usr/lib$LIBDIRSUFFIX @@ -76,20 +73,22 @@ make install DESTDIR="$PKG" LIBSUFFIX="$LIBDIRSUFFIX" gzip -9 $PKG/usr/man/man*/* strip $PKG/usr/bin/* -cp $TMP/$PRGNAM-$VERSION-unix/documentation/*.txt $PKG/usr/doc/$PRGNAM-$VERSION -cp $TMP/$PRGNAM-$VERSION-unix/4th/.directory $PKG/usr/doc/$PRGNAM-$VERSION -cp $TMP/$PRGNAM-$VERSION-unix/COPYING $PKG/usr/doc/$PRGNAM-$VERSION -cp $TMP/$PRGNAM-$VERSION-unix/README $PKG/usr/doc/$PRGNAM-$VERSION -cp -r $TMP/$PRGNAM-$VERSION-unix/4th/* $PKG/usr/doc/$PRGNAM-$VERSION/examples +cp $TMP/$PRGNAM-$VERSION/documentation/4th.1 $PKG/usr/man/man1 +cp $TMP/$PRGNAM-$VERSION/documentation/*.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp $TMP/$PRGNAM-$VERSION/COPYING $PKG/usr/doc/$PRGNAM-$VERSION +cp $TMP/$PRGNAM-$VERSION/README $PKG/usr/doc/$PRGNAM-$VERSION +cp -r $TMP/$PRGNAM-$VERSION/4th/* $PKG/usr/doc/$PRGNAM-$VERSION/examples -# 20220407 bkw: junk files and bad permissions... -find $PKG/usr/doc/$PRGNAM-$VERSION -name .directory -exec rm -rf {} \+ find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \+ +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/examples/apps/graphics/hans.ppm cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +rm $PKG/usr/man/man1/4th.1 cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |