wok-current annotate puzzles/receipt @ rev 15136
puzzles: create version2.def
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 15 10:51:36 2013 +0000 (2013-08-15) |
parents | 25e8d0cf0cbf |
children | bf4a09ef1d2e |
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" |
samuel_trassare@11936 | 8 TARBALL="$PACKAGE.tar.gz" |
erjo@6070 | 9 WEB_SITE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" |
erjo@6070 | 10 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@15136 | 11 |
pascal@6407 | 12 DEPENDS="gtk+ cairo libxcb xorg-libXrandr" |
erjo@6070 | 13 BUILD_DEPENDS="gtk+-dev" |
erjo@6070 | 14 |
erjo@6070 | 15 # Rules to configure and make the package. |
erjo@6070 | 16 compile_rules() |
erjo@6070 | 17 { |
erjo@6070 | 18 cd $src |
pascal@15136 | 19 touch version2.def |
pascal@7417 | 20 sed -i 's/-pedantic//' Makefile mkfiles.pl |
pascal@15136 | 21 mkdir -p $DESTDIR/usr/local/games 2> /dev/null |
erjo@6070 | 22 make && |
pascal@15136 | 23 make DESTDIR=$DESTDIR install |
erjo@6070 | 24 } |
erjo@6070 | 25 |
erjo@6070 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@6070 | 27 genpkg_rules() |
erjo@6070 | 28 { |
erjo@6070 | 29 mkdir -p $fs/usr/share/pixmaps \ |
erjo@6070 | 30 $fs/usr/share/applications |
erjo@6070 | 31 |
pascal@15136 | 32 cp -a $install/usr/local/games $fs/usr |
erjo@6070 | 33 |
erjo@6070 | 34 for img in $(ls $src/icons/*16d24*) |
erjo@6070 | 35 do |
erjo@6070 | 36 cp $img $fs/usr/share/pixmaps/$(basename $img -16d24.png).png |
erjo@6070 | 37 done |
erjo@6070 | 38 |
erjo@6070 | 39 cp -a stuff/*.desktop $fs/usr/share/applications |
erjo@6070 | 40 } |
erjo@6070 | 41 |