initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

68
tomatoes/PKGBUILD Normal file
View File

@@ -0,0 +1,68 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=tomatoes
pkgver=1.55
_debver=$pkgver
_debrel=10
pkgrel=1
pkgdesc="I Have No Tomatoes - free and libre tomatoes smashing game"
url='https://tomatoes.sourceforge.net'
license=('zlib' 'GPL-2')
arch=('i686' 'x86_64')
depends=('sdl_image' 'sdl_mixer' 'glu')
makedepends=('quilt')
groups=('games')
source=("https://deb.debian.org/debian/pool/main/t/tomatoes/tomatoes_${pkgver}.orig.tar.gz"
"https://deb.debian.org/debian/pool/main/t/tomatoes/tomatoes_${_debver}-${_debrel}.debian.tar.xz"
"${pkgname}.desktop"
"makefile-compile-flags.patch")
sha512sums=('b16fdfc6ba2777edc53d5b235811f7b25f5f498ddb1dcb148aae0a7e9a15af575ba76e3e0b1e10d9441c830b557f646cee48b80c53d3c95257093e332e5d56e7'
'3a4e955753be1f76d3fd19625528aab00b66951818ce8e30b42307a4b3ee518403b2dbac5ede2951a7ccaf7cd595053a80eb8d82c1dd7b3ae81260db42263cf1'
'aad74b21648f1ecc78d4aec1e9d54bc578609f28032b464733a51bcfda2ed8dbfbd36ad1b65df6a08c87b7e1927614fe04a4f941b65f06e9ba51830d0945a85a'
'e1abac2428864b55d00e7902e7fd026167c1587b29384e08921ea30d34b7478587dedb2a9fe5dcf89f6ee7333f80f024e26e72a09935e850885c8fa056d40085')
prepare() {
cd $pkgname-$pkgver
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
# Doesn't apply
rm -v debian/patches/02_version.diff || true
rm -v debian/patches/08_flags.diff || true
quilt push -av
fi
# additional fixes
patch -p1 -i $srcdir/makefile-compile-flags.patch
}
build() {
cd $pkgname-$pkgver
make \
MPKDIR=/usr/share/games/$pkgname/ \
MUSICDIR=/usr/share/games/$pkgname/music/ \
CONFIGDIR=/usr/share/games/$pkgname/ \
OVERRIDEDIR=./
}
package() {
cd $pkgname-$pkgver
install -d "$pkgdir"/usr/share/games/$pkgname
cp $pkgname.mpk config.cfg "$pkgdir"/usr/share/games/$pkgname
install -d "$pkgdir"/usr/share/games/$pkgname/music
cp music/IHaveNoTomatoes.it "$pkgdir"/usr/share/games/$pkgname/music
install -Dm755 $pkgname "$pkgdir"/usr/games/$pkgname
install -Dm644 icon.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
install -Dm644 "$srcdir"/$pkgname.desktop -t "$pkgdir"/usr/share/applications
install -Dm644 debian/copyright -t "$pkgdir"/usr/share/licenses/$pkgname
}

View File

@@ -0,0 +1,31 @@
--- a/makefile 2017-09-16 09:14:06.399502208 +0200
+++ b/makefile 2017-09-16 09:14:13.459372215 +0200
@@ -35,7 +35,7 @@
# SDL flags
-SDL_FLAGS = `sdl-config --cflags`
+SDL_FLAGS = $(shell sdl-config --cflags)
# Debugmode stuff
@@ -47,8 +47,8 @@
CFLAGS = -MMD -g3 -O3 -march=$(MARCH) -Wall -pg
LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -pg
else
-CFLAGS = -MMD -O3 -march=$(MARCH) -Wall $(SDL_FLAGS)
-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -s
+CXXFLAGS += -MMD $(SDL_FLAGS)
+LDFLAGS += $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lGL -lGLU
endif
endif
@@ -80,7 +80,7 @@
rebuild: veryclean all
obj/%.o: src/%.cpp
- $(CC) $(CFLAGS) $(INCLUDES) $(DIR_DEFINES) -c $< -o $@
+ $(CC) $(CXXFLAGS) $(CPPFLAGS) $(INCLUDES) $(DIR_DEFINES) -c $< -o $@
# Compress the exe with UPX
compress: $(TARGET)

12
tomatoes/tomatoes.desktop Normal file
View File

@@ -0,0 +1,12 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=I Have No Tomatoes
Name[de]=Ich Habe Keine Tomaten
Comment=How many tomatoes can you smash in ten short minutes?
Comment[de]=Wieviele Tomaten können Sie in zehn kurzen Minuten quetschen?
TryExec=/usr/games/tomatoes
Exec=/usr/games/tomatoes
Categories=Game;ArcadeGame;
Icon=/usr/share/pixmaps/tomatoes.png
Keywords=game;