summaryrefslogtreecommitdiff
path: root/system/plan9port/plan9port.SlackBuild
diff options
context:
space:
mode:
authorRuben Schuller <sb@rbn.im>2017-12-22 20:54:56 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-12-23 07:12:39 +0700
commit108f1ef87122de2b32c218bd42eacd08e43fbacd (patch)
tree8862544f5fb4b9e201f0a854a8e6221787925b71 /system/plan9port/plan9port.SlackBuild
parent94661ba88baca0cc32abdc95f630f2a1878d22e3 (diff)
downloadslackbuilds-108f1ef87122de2b32c218bd42eacd08e43fbacd.tar.gz
system/plan9port: Updated for version 20171222.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/plan9port/plan9port.SlackBuild')
-rw-r--r--system/plan9port/plan9port.SlackBuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/plan9port/plan9port.SlackBuild b/system/plan9port/plan9port.SlackBuild
index 7c51a2ead6..d2f59e2b2e 100644
--- a/system/plan9port/plan9port.SlackBuild
+++ b/system/plan9port/plan9port.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for plan9port
-# Copyright (c) 2012-2014 Ruben Schuller <ruben@orgizm.net>
+# Copyright (c) 2012-2017 Ruben Schuller
#
# Copyright (c) 2008-2010, Antonio Hernández Blas <hba.nihilismus@gmail.com>
# All rights reserved.
@@ -26,13 +26,13 @@
# 2012-10-23: added some changes to reflect the usage of nightly tarballs
PRGNAM=plan9port
-VERSION=${VERSION:-20140306}
+VERSION=${VERSION:-20171222}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -48,21 +48,21 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG/opt $OUTPUT
cd $TMP
-rm -rf $PRGNAM
-tar xvf $CWD/$PRGNAM-$VERSION.tgz
-cd $PRGNAM
+rm -rf $PRGNAM-master
+unzip $CWD/master.zip || unzip $CWD/plan9port-master.zip
+cd $PRGNAM-master
chown -R root:root .
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 {} \;
# All plan9 programs are going to be installed in "/opt/plan9"
PLAN9_TARGET=/opt/plan9 ./INSTALL
cd $TMP
-mv $PRGNAM $PKG/opt/plan9
+mv $PRGNAM-master $PKG/opt/plan9
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
@@ -78,7 +78,7 @@ install -D -m 0755 $CWD/xinitrc.rio $PKG/etc/X11/xinit/xinitrc.rio
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $PKG/opt/plan9
-mv CHANGES install.txt LICENSE README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+mv CHANGES CONTRIBUTORS INSTALL LICENSE README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install