wok-next view foobillardplus/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d958fec46c9f
children 5669e8b3be70
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 libsdl-dev libsdl-mixer-dev libsdl-net-dev \
16 mesa-dev glu-dev freetype-dev libpng16-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 libpng16 libsdl libsdl-mixer libsdl-net mesa"
56 ;;
57 esac
58 }