wok annotate puzzles/receipt @ rev 16314

ARM: add tar and some fixes
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 09 14:14:10 2014 +0200 (2014-04-09)
parents 38bfb19944b1
children d37d15244372
rev   line source
erjo@6070 1 # SliTaz package receipt.
erjo@6070 2
erjo@6070 3 PACKAGE="puzzles"
erjo@6070 4 VERSION="r8972"
erjo@6070 5 CATEGORY="games"
erjo@6070 6 SHORT_DESC="Misc puzzles games."
erjo@6070 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15376 8 LICENSE="MIT"
samuel_trassare@11936 9 TARBALL="$PACKAGE.tar.gz"
erjo@6070 10 WEB_SITE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
erjo@6070 11 WGET_URL="${WEB_SITE}$TARBALL"
pascal@15136 12
pascal@6407 13 DEPENDS="gtk+ cairo libxcb xorg-libXrandr"
erjo@6070 14 BUILD_DEPENDS="gtk+-dev"
erjo@6070 15
erjo@6070 16 # Rules to configure and make the package.
erjo@6070 17 compile_rules()
erjo@6070 18 {
erjo@6070 19 cd $src
pascal@15136 20 touch version2.def
pascal@7417 21 sed -i 's/-pedantic//' Makefile mkfiles.pl
pascal@15136 22 mkdir -p $DESTDIR/usr/local/games 2> /dev/null
erjo@6070 23 make &&
pascal@15136 24 make DESTDIR=$DESTDIR install
erjo@6070 25 }
erjo@6070 26
erjo@6070 27 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@6070 28 genpkg_rules()
erjo@6070 29 {
erjo@6070 30 mkdir -p $fs/usr/share/pixmaps \
erjo@6070 31 $fs/usr/share/applications
erjo@6070 32
pascal@15136 33 cp -a $install/usr/local/games $fs/usr
erjo@6070 34
erjo@6070 35 for img in $(ls $src/icons/*16d24*)
erjo@6070 36 do
erjo@6070 37 cp $img $fs/usr/share/pixmaps/$(basename $img -16d24.png).png
erjo@6070 38 done
erjo@6070 39
pascal@15376 40 cp -a $stuff/*.desktop $fs/usr/share/applications
erjo@6070 41 }
erjo@6070 42