blob: 7ac27c326275bd5b80684edf10c30eedde6b3b25 (
plain)
1 # Description: Shoot balls and get 3 of the same colour in a group to make them drop.
2 # URL: http://www.frozen-bubble.org/
3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
4 # Packager: Danny Rawlins, monster dot romster at gmail dot com
5 # Depends on: p5-sdl1-perl sdl_pango p5-locale-gettext
6
7 name=frozen-bubble
8 version=2.2.0
9 release=1
10 source=(http://www.frozen-bubble.org/data/$name-$version.tar.bz2
11 $name.desktop)
12
13 build() {
14 cd $name-$version
15
16 sed -i settings.mk \
17 -e "s|PREFIX = .*|PREFIX = /usr|" \
18 -e 's|MANDIR = .*|MANDIR = $(PREFIX)/man|'
19
20 make
21 make DESTDIR=$PKG install
22 rm -r $PKG/usr/share/locale
23
24 # install icons
25 install -D -m 0644 icons/frozen-bubble-icon-16x16.png $PKG/usr/share/icons/hicolor/16x16/apps/frozen-bubble.png
26 install -D -m 0644 icons/frozen-bubble-icon-32x32.png $PKG/usr/share/icons/hicolor/32x32/apps/frozen-bubble.png
27 install -D -m 0644 icons/frozen-bubble-icon-48x48.png $PKG/usr/share/icons/hicolor/48x48/apps/frozen-bubble.png
28 install -D -m 0644 icons/frozen-bubble-icon-64x64.png $PKG/usr/share/icons/hicolor/64x64/apps/frozen-bubble.png
29
30 # install menu entry
31 install -D -m 0644 $SRC/frozen-bubble.desktop $PKG/usr/share/applications/frozen-bubble.desktop
32
33 # Remove perlcrap
34 find $PKG \( \
35 -name '.packlist' -o \
36 -name '*.bs' -o \
37 -name 'autosplit.ix' -o \
38 -name 'perllocal.pod' \) -delete
39
40 # Remove empty directories
41 find $PKG -depth -empty -delete
42 }
|