wok-next annotate 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 |
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 |
al@20870 | 15 BUILD_DEPENDS="automake autoconf libsdl-dev libsdl-mixer-dev libsdl-net-dev \ |
al@20870 | 16 mesa-dev glu-dev freetype-dev libpng16-dev" |
al@21020 | 17 SPLIT="$PACKAGE-music $PACKAGE" |
pascal@14379 | 18 |
al@20870 | 19 compile_rules() { |
pascal@14379 | 20 aclocal --force |
pascal@14379 | 21 autoconf -f |
pascal@14379 | 22 autoheader -f |
pascal@14379 | 23 automake --gnu -a -c -f |
al@20870 | 24 |
pascal@14379 | 25 ./configure && |
al@20870 | 26 make || return 1 |
al@20870 | 27 |
al@20870 | 28 # there's an /opt style install, it's better to write it here rather than patch everything there |
al@20870 | 29 fbdir='/usr/share/foobillardplus' |
al@20870 | 30 |
al@20870 | 31 install -Dm755 src/foobillardplus $install$fbdir/bin/foobillardplus # bin need to be here |
al@20870 | 32 mkdir -p $install/usr/bin/ |
al@20870 | 33 ln -s $fbdir/bin/foobillardplus $install/usr/bin/foobillardplus |
al@20870 | 34 fix symlinks |
al@20870 | 35 |
al@20870 | 36 mkdir -p $install$fbdir/ |
al@20870 | 37 cp -R data/* $install$fbdir/ |
al@20870 | 38 sed -i 's|firefox|browser|' $install$fbdir/browser.sh # use SliTaz browser |
al@20870 | 39 |
al@20870 | 40 install -Dm644 foobillardplus.desktop $install/usr/share/applications/foobillardplus.desktop |
al@20870 | 41 install -Dm644 foobillardplus.png $install/usr/share/icons/hicolor/128x128/apps/foobillardplus.png |
al@20870 | 42 |
al@20870 | 43 find $install \( -name '*.ttf' -o -name '*.ico' \) -delete |
pascal@14379 | 44 } |
pascal@14379 | 45 |
al@20870 | 46 genpkg_rules() { |
pascal@20324 | 47 case $PACKAGE in |
al@20870 | 48 foobillardplus-music) |
al@20870 | 49 copy music/ |
al@20870 | 50 CAT="games|music files" |
al@20870 | 51 DEPENDS="foobillardplus" |
al@20870 | 52 ;; |
al@20870 | 53 foobillardplus) |
al@20870 | 54 copy @std @rm hicolor/ # 128px icons isn't copied with @std |
al@20870 | 55 DEPENDS="freetype glu libpng16 libsdl libsdl-mixer libsdl-net mesa" |
al@20870 | 56 ;; |
pascal@20324 | 57 esac |
pascal@14379 | 58 } |