diff options
author | Danny Rawlins <contact@romster.me> | 2020-12-27 18:55:35 +1100 |
---|---|---|
committer | Danny Rawlins <contact@romster.me> | 2020-12-27 18:55:35 +1100 |
commit | 6d4e8d3713772c3ce3a4d988b415b2ce96ba8c06 (patch) | |
tree | 3bcca29d5b966d4caeb520f11e9250e6c96e338a /rocksndiamonds/Pkgfile | |
parent | 21ecc3bbb630638ddb27d2f9cb08059456c3dcb7 (diff) | |
download | contrib-6d4e8d3713772c3ce3a4d988b415b2ce96ba8c06.tar.gz contrib-6d4e8d3713772c3ce3a4d988b415b2ce96ba8c06.tar.xz |
rocksndiamonds: 4.2.1.0 -> 4.2.2.0
Diffstat (limited to 'rocksndiamonds/Pkgfile')
-rw-r--r-- | rocksndiamonds/Pkgfile | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/rocksndiamonds/Pkgfile b/rocksndiamonds/Pkgfile index e01f3b136..c6898dba0 100644 --- a/rocksndiamonds/Pkgfile +++ b/rocksndiamonds/Pkgfile @@ -4,21 +4,19 @@ # Depends on: sdl2_image sdl2_mixer sdl2_net name=rocksndiamonds -version=4.2.1.0 +version=4.2.2.0 release=1 -source=(https://www.artsoft.org/RELEASES/unix/rocksndiamonds/rocksndiamonds-$version.tar.gz) +source=(https://www.artsoft.org/RELEASES/unix/rocksndiamonds/$name-$version.tar.gz + rocksndiamonds.desktop) build() { - cd rocksndiamonds-$version + cd $name-$version - sed -i src/Makefile \ - -e '/^OPTIONS = $(DEBUG) -Wall.*$/d' \ - -e "/^OPTIONS = -O3 -Wall/s/-O3 -Wall/$CFLAGS -Wall -O3/" - - export BUILD_DIST=1 - export RO_GAME_DIR='/usr/share/rocksndiamonds' - export RW_GAME_DIR='/var/lib/games/rocksndiamonds' - make + make \ + RO_GAME_DIR='/usr/share/rocksndiamonds' \ + RW_GAME_DIR='/var/lib/games/rocksndiamonds' \ + EXTRA_CFLAGS="$CFLAGS" \ + EXTRA_LDFLAGS="$LDFLAGS" install -d \ $PKG/usr/share/rocksndiamonds/graphics \ @@ -34,11 +32,7 @@ build() { #cp -r scores $PKG/var/lib/games/rocksndiamonds install -D -m 0755 rocksndiamonds $PKG/usr/bin/rocksndiamonds + install -D -m 0644 $SRC/rocksndiamonds.desktop $PKG/usr/share/applications/rocksndiamonds.desktop rm $PKG/usr/share/rocksndiamonds/levels/Tutorials/rnd_tutorial_niko_boehm/README - - unset BUILD_DIST - unset RO_GAME_DIR - unset RW_GAME_DIR } - |