wok-current view puzzles/receipt @ rev 15341
n2nc: use autoconf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 29 11:40:18 2013 +0000 (2013-09-29) |
parents | 25e8d0cf0cbf |
children | bf4a09ef1d2e |
line source
1 # SliTaz package receipt.
3 PACKAGE="puzzles"
4 VERSION="r8972"
5 CATEGORY="games"
6 SHORT_DESC="Misc puzzles games."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE.tar.gz"
9 WEB_SITE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
10 WGET_URL="${WEB_SITE}$TARBALL"
12 DEPENDS="gtk+ cairo libxcb xorg-libXrandr"
13 BUILD_DEPENDS="gtk+-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 touch version2.def
20 sed -i 's/-pedantic//' Makefile mkfiles.pl
21 mkdir -p $DESTDIR/usr/local/games 2> /dev/null
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/pixmaps \
30 $fs/usr/share/applications
32 cp -a $install/usr/local/games $fs/usr
34 for img in $(ls $src/icons/*16d24*)
35 do
36 cp $img $fs/usr/share/pixmaps/$(basename $img -16d24.png).png
37 done
39 cp -a stuff/*.desktop $fs/usr/share/applications
40 }