mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
games/fortune-dharma: Handle weird source filename.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
b58a0647f7
commit
94efcd10f4
1 changed files with 10 additions and 6 deletions
|
@ -33,9 +33,6 @@ PKGTYPE=${PKGTYPE:-tgz}
|
|||
|
||||
ARCH=noarch
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
|
@ -47,18 +44,25 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
set -e
|
||||
|
||||
# 20220220 bkw: depending on what client was used to download the file,
|
||||
# it may have CGI parameters in the filename.
|
||||
TARBALL=$CWD/$PRGNAM-$VERSION.tar.gz
|
||||
if [ ! -e $TARBALL ]; then
|
||||
TARBALL="$( /bin/ls $TARBALL\?* | head -1 )"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf "$TARBALL"
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
-exec chmod 755 {} \+ -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
-exec chmod 644 {} \+
|
||||
|
||||
make all
|
||||
make install DESTDIR=$PKG
|
||||
|
|
Loading…
Reference in a new issue