wok-next annotate foobillardplus/receipt @ rev 21638

updated fail2ban (0.9.0 -> 0.11.1)
author Hans-G?nter Theisgen
date Fri Jun 26 15:26:10 2020 +0100 (2020-06-26)
parents 0f2575775b2d
children
rev   line source
pascal@20324 1 # SliTaz package receipt v2.
pascal@14379 2
pascal@14379 3 PACKAGE="foobillardplus"
pascal@14379 4 VERSION="3.42beta"
pascal@14379 5 CATEGORY="games"
pascal@14379 6 SHORT_DESC="FooBillard - free 3D OpenGL billard game for linux"
pascal@14379 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15002 8 LICENSE="GPL2"
pascal@14379 9 WEB_SITE="http://foobillard.sourceforge.net/"
al@20882 10 REPOLOGY="foobillard++"
al@20870 11
pascal@14379 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14379 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@14379 14
Hans-G?nter@21265 15 BUILD_DEPENDS="autoconf automake freetype-dev glu-dev
Hans-G?nter@21265 16 libpng-dev mesa-dev sdl-dev sdl-mixer-dev sdl-net-dev"
al@21020 17 SPLIT="$PACKAGE-music $PACKAGE"
pascal@14379 18
Hans-G?nter@21265 19 compile_rules()
Hans-G?nter@21265 20 {
pascal@14379 21 aclocal --force
pascal@14379 22 autoconf -f
pascal@14379 23 autoheader -f
pascal@14379 24 automake --gnu -a -c -f
al@20870 25
pascal@14379 26 ./configure &&
al@20870 27 make || return 1
al@20870 28
al@20870 29 # there's an /opt style install, it's better to write it here rather than patch everything there
al@20870 30 fbdir='/usr/share/foobillardplus'
al@20870 31
al@20870 32 install -Dm755 src/foobillardplus $install$fbdir/bin/foobillardplus # bin need to be here
al@20870 33 mkdir -p $install/usr/bin/
al@20870 34 ln -s $fbdir/bin/foobillardplus $install/usr/bin/foobillardplus
al@20870 35 fix symlinks
al@20870 36
al@20870 37 mkdir -p $install$fbdir/
al@20870 38 cp -R data/* $install$fbdir/
al@20870 39 sed -i 's|firefox|browser|' $install$fbdir/browser.sh # use SliTaz browser
al@20870 40
Hans-G?nter@21265 41 install -Dm644 foobillardplus.desktop \
Hans-G?nter@21265 42 $install/usr/share/applications/foobillardplus.desktop
Hans-G?nter@21265 43 install -Dm644 foobillardplus.png \
Hans-G?nter@21265 44 $install/usr/share/icons/hicolor/128x128/apps/foobillardplus.png
al@20870 45
al@20870 46 find $install \( -name '*.ttf' -o -name '*.ico' \) -delete
pascal@14379 47 }
pascal@14379 48
Hans-G?nter@21265 49 genpkg_rules()
Hans-G?nter@21265 50 {
pascal@20324 51 case $PACKAGE in
al@20870 52 foobillardplus-music)
al@20870 53 copy music/
al@20870 54 CAT="games|music files"
al@20870 55 DEPENDS="foobillardplus"
al@20870 56 ;;
al@20870 57 foobillardplus)
al@20870 58 copy @std @rm hicolor/ # 128px icons isn't copied with @std
al@21087 59 DEPENDS="freetype glu libpng sdl sdl-mixer sdl-net mesa"
al@20870 60 ;;
pascal@20324 61 esac
pascal@14379 62 }