aboutsummaryrefslogtreecommitdiff
path: root/games/Pyfa/Pyfa.SlackBuild
diff options
context:
space:
mode:
authorZach Lewis <koni@archlinux.us>2017-08-28 10:43:16 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-09-02 10:19:44 +0100
commit17398237116587a41f0beb3a5a4b5a6d71c54877 (patch)
treea2dc82b4189e24fbf4c27ffd392ebeb4a03ead49 /games/Pyfa/Pyfa.SlackBuild
parent2d3140cce7905c21ceae9e5b2cae5ea008b7a77a (diff)
games/Pyfa: Updated for version 1.31.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/Pyfa/Pyfa.SlackBuild')
-rw-r--r--games/Pyfa/Pyfa.SlackBuild26
1 files changed, 14 insertions, 12 deletions
diff --git a/games/Pyfa/Pyfa.SlackBuild b/games/Pyfa/Pyfa.SlackBuild
index da30f540c2ac3..610b02f3d133e 100644
--- a/games/Pyfa/Pyfa.SlackBuild
+++ b/games/Pyfa/Pyfa.SlackBuild
@@ -23,9 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Pyfa
-VERSION=${VERSION:-1.25.0}
+VERSION=${VERSION:-1.31.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
+SRCNAM=pyfa
+
ARCH=noarch
CWD=$(pwd)
@@ -38,10 +41,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
-
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM
+unzip $CWD/$SRCNAM-$VERSION-*.zip
+cd $SRCNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -49,18 +51,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cd $TMP
+
mkdir -p $PKG/opt/
-mv $PRGNAM-$VERSION $PKG/opt/
+mv $SRCNAM $PKG/opt/$PRGNAM-$VERSION
+
+mkdir -p $PKG/usr/bin
+ln -s /opt/$PRGNAM-$VERSION/pyfa.py $PKG/usr/bin/pyfa
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $PKG/opt/$PRGNAM-$VERSION/{README.md,LICENSE} \
+ $PKG/usr/doc/$PRGNAM-$VERSION/
cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/
-mkdir -p $PKG/usr/bin
-(
- cd $PKG/usr/bin
- ln -s /opt/$PRGNAM-$VERSION/pyfa.py pyfa
-)
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc