wok-next view foobillardplus/receipt @ rev 21286

updated gnuradio (3.7.8 -> 3.8.0.0)
author Hans-G?nter Theisgen
date Sun Dec 08 11:42:09 2019 +0100 (2019-12-08)
parents 0f2575775b2d
children
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="autoconf automake freetype-dev glu-dev
16 libpng-dev mesa-dev sdl-dev sdl-mixer-dev sdl-net-dev"
17 SPLIT="$PACKAGE-music $PACKAGE"
19 compile_rules()
20 {
21 aclocal --force
22 autoconf -f
23 autoheader -f
24 automake --gnu -a -c -f
26 ./configure &&
27 make || return 1
29 # there's an /opt style install, it's better to write it here rather than patch everything there
30 fbdir='/usr/share/foobillardplus'
32 install -Dm755 src/foobillardplus $install$fbdir/bin/foobillardplus # bin need to be here
33 mkdir -p $install/usr/bin/
34 ln -s $fbdir/bin/foobillardplus $install/usr/bin/foobillardplus
35 fix symlinks
37 mkdir -p $install$fbdir/
38 cp -R data/* $install$fbdir/
39 sed -i 's|firefox|browser|' $install$fbdir/browser.sh # use SliTaz browser
41 install -Dm644 foobillardplus.desktop \
42 $install/usr/share/applications/foobillardplus.desktop
43 install -Dm644 foobillardplus.png \
44 $install/usr/share/icons/hicolor/128x128/apps/foobillardplus.png
46 find $install \( -name '*.ttf' -o -name '*.ico' \) -delete
47 }
49 genpkg_rules()
50 {
51 case $PACKAGE in
52 foobillardplus-music)
53 copy music/
54 CAT="games|music files"
55 DEPENDS="foobillardplus"
56 ;;
57 foobillardplus)
58 copy @std @rm hicolor/ # 128px icons isn't copied with @std
59 DEPENDS="freetype glu libpng sdl sdl-mixer sdl-net mesa"
60 ;;
61 esac
62 }