aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2022-10-13 23:41:13 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-15 10:47:30 +0700
commit4c183af95f0c2fd3a3510b1e7597eb2a6bea41b6 (patch)
tree204e6071ec5301e82ced292cb03b53d3107b51db
parentc23441ac29b9a9aebffa02588ea805283d32cabf (diff)
games/0ad-data: Rebuilt to extract directly into $PKG.
NOTE: BUILD deliberately not bumped. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/0ad-data/0ad-data.SlackBuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/games/0ad-data/0ad-data.SlackBuild b/games/0ad-data/0ad-data.SlackBuild
index 917057b2de988..f0e3c224898df 100644
--- a/games/0ad-data/0ad-data.SlackBuild
+++ b/games/0ad-data/0ad-data.SlackBuild
@@ -51,10 +51,10 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-rm -rf $DATANAM-$VERSION-$RELEASE
-tar xvf $CWD/$DATANAM-$VERSION-$RELEASE-unix-data.tar.xz
-cd $DATANAM-$VERSION-$RELEASE
+mkdir -p $PKG/usr/share/games/0ad
+cd $PKG/usr/share/games/0ad
+tar --strip-components=3 -xvf $CWD/$DATANAM-$VERSION-$RELEASE-unix-data.tar.xz $DATANAM-$VERSION-$RELEASE/binaries/data/
+cd $PKG
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -62,9 +62,6 @@ 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 {} \;
-mkdir -p $PKG/usr/share/games
-cp -rv binaries/data $PKG/usr/share/games/0ad
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild