rocksndiamonds: 4.2.1.0 -> 4.2.2.0

This commit is contained in:
Danny Rawlins 2020-12-27 18:55:35 +11:00
parent 21ecc3bbb6
commit 6d4e8d3713
4 changed files with 27 additions and 20 deletions

View File

@ -2,6 +2,8 @@ drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/rocksndiamonds
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/applications/
-rw-r--r-- root/root usr/share/applications/rocksndiamonds.desktop
drwxr-xr-x root/root usr/share/rocksndiamonds/
drwxr-xr-x root/root usr/share/rocksndiamonds/graphics/
drwxr-xr-x root/root usr/share/rocksndiamonds/graphics/gfx_classic/

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3z3FlSp95m9HfOlJO8T/ig4bVOxcMY1/fUASi2Iu9pSaV7+Ms7IohA++vEiNypu9rhuKW9Uqv+aj6GMMA5ZiIgc=
SHA256 (Pkgfile) = c685010c84f1bfec2822ba8a66449e2184844d2169b5929bcb5e90bb216e8bcc
SHA256 (.footprint) = af74122a037a51c6449ace0e84fbb2c89a03b1cff799725e030ae50e9b748506
SHA256 (rocksndiamonds-4.2.1.0.tar.gz) = 5e6274614f74f075244bafb179f10be2f5766d40851225e02c053726bc653955
RWSagIOpLGJF3xr7H4nj8URmwcyHLP2QxTz5GYn5JT9d+m+jJYNjY1R6S25w2TKv1DJ/fgId/An9PZNnQSZBw4Q7i/SzGtS82AA=
SHA256 (Pkgfile) = 6ddb99ac73614ddd0395a57d42f6e23e3eecb8d3d1d27a6b1a58348a011f6bc0
SHA256 (.footprint) = d33b8c7e7f851d713b0f53301af1cbca16089a0c305853182ee8f68004cfd525
SHA256 (rocksndiamonds-4.2.2.0.tar.gz) = 4a990a92fb22ab5e0f77db90a51905e1b2b037b7badab8b3e99553f11dab041b
SHA256 (rocksndiamonds.desktop) = 90008d356dd30034287ca763a05feb482d7e0c4508572abb08b5215fcb4fe922

View File

@ -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
}

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Name=Rocks'N'Diamonds
GenericName=Rocks'N'Diamonds
Comment=Arcade game
Exec=rocksndiamonds
Terminal=false
Type=Application
Categories=Application;Game;
StartupNotify=false