wok-next view foobillardplus/receipt @ rev 21107
Restore Perl modules removed accidentally in commit 19709
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jan 07 11:16:02 2019 +0200 (2019-01-07) |
parents | 5669e8b3be70 |
children | 62d47401569a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="foobillardplus"
4 VERSION="3.42beta"
5 CATEGORY="games"
6 SHORT_DESC="FooBillard - free 3D OpenGL billard game for linux"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://foobillard.sourceforge.net/"
10 REPOLOGY="foobillard++"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="automake autoconf sdl-dev sdl-mixer-dev sdl-net-dev \
16 mesa-dev glu-dev freetype-dev libpng-dev"
17 SPLIT="$PACKAGE-music $PACKAGE"
19 compile_rules() {
20 aclocal --force
21 autoconf -f
22 autoheader -f
23 automake --gnu -a -c -f
25 ./configure &&
26 make || return 1
28 # there's an /opt style install, it's better to write it here rather than patch everything there
29 fbdir='/usr/share/foobillardplus'
31 install -Dm755 src/foobillardplus $install$fbdir/bin/foobillardplus # bin need to be here
32 mkdir -p $install/usr/bin/
33 ln -s $fbdir/bin/foobillardplus $install/usr/bin/foobillardplus
34 fix symlinks
36 mkdir -p $install$fbdir/
37 cp -R data/* $install$fbdir/
38 sed -i 's|firefox|browser|' $install$fbdir/browser.sh # use SliTaz browser
40 install -Dm644 foobillardplus.desktop $install/usr/share/applications/foobillardplus.desktop
41 install -Dm644 foobillardplus.png $install/usr/share/icons/hicolor/128x128/apps/foobillardplus.png
43 find $install \( -name '*.ttf' -o -name '*.ico' \) -delete
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 foobillardplus-music)
49 copy music/
50 CAT="games|music files"
51 DEPENDS="foobillardplus"
52 ;;
53 foobillardplus)
54 copy @std @rm hicolor/ # 128px icons isn't copied with @std
55 DEPENDS="freetype glu libpng sdl sdl-mixer sdl-net mesa"
56 ;;
57 esac
58 }