blob: 8f3231033be5eda5d151dc856411fd49cf1eaa4b (
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
60
61
62
63
64
65
66
67
|
# Maintainer: Scott B. Blacklock <zulc22 "@" zulc22 "d0t" space>
# Contributor: David A. Redick <david.a.redick@gmail.com>
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
pkgname=tecnoballz
pkgver=0.93.1
pkgrel=4
arch=('any')
pkgdesc='An exciting brick breaker game'
url='http://linux.tlk.fr/games/TecnoballZ/'
depends=('sdl_image' 'sdl_mixer' 'tinyxml' 'libmikmod')
license=('GPL3')
backup=('var/lib/tecnoballz/tecnoballz.hi')
source=(
"http://linux.tlk.fr/games/TecnoballZ/download/${pkgname}-${pkgver}.tgz"
"${pkgname}.xpm"
"${pkgname}.desktop"
games.dir.patch
'tecnoballz.48.png'
'tecnoballz.64.png'
)
md5sums=(
'7beeacb06fa841382f0ecbe73f64723a'
'5b8d94612523353b6d2eb32f840b58d8'
'e6a50c9c6ec7fd3ecf21fd9738c8d6be'
'92793da20387db8c32646052a85e56d7'
'de4554b57efe05c35ce7adeef597f798'
'f4e4f0ff03728180f84cfa99970a117b'
)
prepare () {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -p1 < "${srcdir}/games.dir.patch"
}
build () {
cd "${srcdir}/${pkgname}-${pkgver}"
./bootstrap
./configure --prefix=/usr
# Set -std=gnu++98 so the compilation doesn't fail on modern systems.
# Some code is insecure, but I'd rather have an equivalent binary in something like a game.
make CXXFLAGS="-O2 -Wno-error -pedantic -Wextra -std=gnu++98"
}
package () {
# Maybe someone will make an SVG, someday...?
mkdir -p "${pkgdir}/usr/share/applications"
# mkdir -p "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
mkdir -p "${pkgdir}/usr/share/icons/hicolor/64x64/apps"
mkdir -p "${pkgdir}/usr/share/icons/hicolor/48x48/apps"
install -m644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications"
# install -m644 "${pkgname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
install -m644 "${pkgname}.64.png" "${pkgdir}/usr/share/icons/hicolor/64x64/apps/${pkgname}.png"
install -m644 "${pkgname}.48.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png"
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="$pkgdir" install
# fix permissions
chgrp users "${pkgdir}/var/lib/${pkgname}/tecnoballz.hi"
chmod 755 "${pkgdir}/usr/bin/${pkgname}"
}
|