diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-19 10:32:44 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-20 15:12:42 +0700 |
commit | 5d18424b69c93099c9e6916d220e97eba155810f (patch) | |
tree | 9f5d0f0b8b04fd59c760975ce98c82085a08e2ba /games/angband/angband.SlackBuild | |
parent | 219e16e0c28838d1ccdb16a7151395e2b8b66c30 (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/angband.SlackBuild')
-rw-r--r-- | games/angband/angband.SlackBuild | 27 |
1 files changed, 14 insertions, 13 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 |