games/angband: Fix download URL.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-19 10:32:44 -05:00 committed by Willy Sudiarto Raharjo
parent 219e16e0c2
commit 5d18424b69
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 16 additions and 15 deletions

View file

@ -23,6 +23,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220219 bkw: Modified by SlackBuilds.org:
# - update download URL to one that exists.
# - actually use SLKCFLAGS.
# - use full path to icon in .desktop (since it's not in /usr/share/icons).
# - remove an empty file from the doc dir.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=angband
@ -39,9 +45,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# 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
@ -76,13 +79,13 @@ 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 \
-o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
./autogen.sh
CFLAGS="$SLKCFLAGS" \
LDFLAGS="-lSDL" \
./autogen.sh
./configure \
--enable-sdl \
--prefix=/usr \
@ -95,11 +98,9 @@ LDFLAGS="-lSDL" \
make
make install DESTDIR=$PKG
strip $PKG/usr/games/$PRGNAM
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG -name "delete.me" -exec rm -f {} \;
find $PKG -name "delete.me" -exec rm -f {} \+
mkdir -p $PKG/var/games/angband/archive
mkdir -p $PKG/var/games/angband/save
@ -113,9 +114,9 @@ cp $CWD/angband.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a changes.txt README.md docs/ lib/help/ \
$PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/help/.dep*
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/{doc,help}/.dep*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -5,4 +5,4 @@ Exec=angband
Terminal=true
Type=Application
Categories=Game;
Icon=angband
Icon=/usr/share/pixmaps/angband.png

View file

@ -1,7 +1,7 @@
PRGNAM="angband"
VERSION="4.2.1"
HOMEPAGE="http://www.rephial.org/"
DOWNLOAD="http://rephial.org/downloads/4.2/angband-4.2.1.tar.gz"
DOWNLOAD="http://distfiles.macports.org/angband/angband-4.2.1.tar.gz"
MD5SUM="4538a8e34673cef9da1f11b6abda3f5e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""