summaryrefslogtreecommitdiff
path: root/games/Pyfa/Pyfa.SlackBuild
diff options
context:
space:
mode:
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 da30f540c2..610b02f3d1 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