aboutsummaryrefslogtreecommitdiff
path: root/games/angband
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-19 10:32:44 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-20 15:12:42 +0700
commit5d18424b69c93099c9e6916d220e97eba155810f (patch)
tree9f5d0f0b8b04fd59c760975ce98c82085a08e2ba /games/angband
parent219e16e0c28838d1ccdb16a7151395e2b8b66c30 (diff)
games/angband: Fix download URL.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/angband')
-rw-r--r--games/angband/angband.SlackBuild27
-rw-r--r--games/angband/angband.desktop2
-rw-r--r--games/angband/angband.info2
3 files changed, 16 insertions, 15 deletions
diff --git a/games/angband/angband.SlackBuild b/games/angband/angband.SlackBuild
index e6dbc5bbd330..f8eff2c5ca37 100644
--- a/games/angband/angband.SlackBuild
+++ b/games/angband/angband.SlackBuild
@@ -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 {} \+
-CFLAGS="$SLKCFLAGS" \
-LDFLAGS="-lSDL" \
./autogen.sh
+
+CFLAGS="$SLKCFLAGS" \
./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
diff --git a/games/angband/angband.desktop b/games/angband/angband.desktop
index 8933def883f9..f70c7dc57b1d 100644
--- a/games/angband/angband.desktop
+++ b/games/angband/angband.desktop
@@ -5,4 +5,4 @@ Exec=angband
Terminal=true
Type=Application
Categories=Game;
-Icon=angband
+Icon=/usr/share/pixmaps/angband.png
diff --git a/games/angband/angband.info b/games/angband/angband.info
index de1cf7f79a21..6779019cbe3f 100644
--- a/games/angband/angband.info
+++ b/games/angband/angband.info
@@ -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=""