diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-04-13 21:34:22 +1200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-16 12:12:39 +0700 |
commit | c124a03f524bbaccb7ce809ac5ddc368493abb15 (patch) | |
tree | a2b859aaf6ee1f65ba64c99410234a256d4bd14c /games/devilutionx/devilutionx.SlackBuild | |
parent | 148c220c7a0fd014eefca2984d604f1c862f0a25 (diff) | |
download | slackbuilds-c124a03f524bbaccb7ce809ac5ddc368493abb15.tar.gz |
games/devilutionx: Fix github tarball handling.
Align to template. Don't use PKNAM. Convention is usually
SRCNAM.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/devilutionx/devilutionx.SlackBuild')
-rw-r--r-- | games/devilutionx/devilutionx.SlackBuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/games/devilutionx/devilutionx.SlackBuild b/games/devilutionx/devilutionx.SlackBuild index 92dbc85347..482e80dc26 100644 --- a/games/devilutionx/devilutionx.SlackBuild +++ b/games/devilutionx/devilutionx.SlackBuild @@ -24,15 +24,12 @@ cd $(dirname $0) ; CWD=$(pwd) -PKGNAM=devilutionX PRGNAM=devilutionx +SRCNAM=devilutionX VERSION=${VERSION:-1.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PKGNAM -OUTPUT=${OUTPUT:-/tmp} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -47,6 +44,10 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" @@ -66,9 +67,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PKGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PKGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |