games/0ad-data: Rebuilt to extract directly into $PKG.

NOTE: BUILD deliberately not bumped.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Tim Dickson 2022-10-13 23:41:13 +01:00 committed by Willy Sudiarto Raharjo
parent c23441ac29
commit 4c183af95f
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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