blob: cfada2b1daa37de76ac55b87e66152c04b17a680 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Michael Straube <straubem@gmx.de>
# Contributor: Loui Chang <louipc dot ist at no spam gmail company>
pkgname=tomatoes
pkgver=1.55
pkgrel=14
pkgdesc="How many tomatoes can you smash in ten short minutes?"
url="http://tomatoes.sourceforge.net"
license=('ZLIB')
arch=('i686' 'x86_64')
depends=('sdl_image' 'sdl_mixer' 'glu')
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-linux-src-$pkgver.tar.bz2"
"https://downloads.sourceforge.net/$pkgname/$pkgname-linux-1.5.tar.bz2"
"0001-tomatoes-1.55-makefile-Append-to-compile-flags.patch"
"0002-tomatoes-1.55-Quell-const-char-conversion-warnings.patch"
"0003-tomatoes-1.55-config-hiscore-file-saving-loading.patch"
"tomatoes.desktop")
sha256sums=('126d001532ee5b81cc95e1a86a274d11669b8c8f65c8235ae2e9b8fbdfab4a60'
'69a3af1994cb58409be9b469e1aa4bdb91c405d99071c7431526640ec53d1300'
'49b2944b268efcfc660da682dfbc2404558e52ba034cc39d310e8c74ed89646c'
'4f9e72fcb3d4427ec633d9ce6f3bb73179cfac1dba55f1ff7f68725f63f1d55d'
'0dcab19428d4904d1d5ab0099b23f6d9f3f53399303166ad3cea6e743efcd9bf'
'15588e33cd9cd532857bb54310d6cd31a75a3f1f0de5b524a0b701c6a317fec7')
prepare() {
cd $pkgname-$pkgver
patch -p1 < ../0001-tomatoes-1.55-makefile-Append-to-compile-flags.patch
patch -p1 < ../0002-tomatoes-1.55-Quell-const-char-conversion-warnings.patch
patch -p0 < ../0003-tomatoes-1.55-config-hiscore-file-saving-loading.patch
sed -n '7,27p' README-src > LICENSE
}
build() {
cd $pkgname-$pkgver
LDFLAGS=/usr/lib/libSDL-1.2.so.0
make \
MPKDIR=/usr/share/tomatoes/ \
MUSICDIR=/usr/share/tomatoes/music/ \
CONFIGDIR=/usr/share/tomatoes/ \
OVERRIDEDIR=./
}
package() {
cd $pkgname-$pkgver
install -d "$pkgdir"/usr/share/$pkgname
cp -r ../$pkgname-1.5/* "$pkgdir"/usr/share/$pkgname
install -Dm755 tomatoes "$pkgdir"/usr/bin/tomatoes
install -Dm644 icon.png "$pkgdir"/usr/share/pixmaps/tomatoes.png
install -Dm644 ../tomatoes.desktop "$pkgdir"/usr/share/applications/tomatoes.desktop
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|