wok-next view puzzles/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | 27bae9732b8d |
children | f48456621a9d |
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 LICENSE="MIT"
9 TARBALL="$PACKAGE.tar.gz"
10 WEB_SITE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
11 WGET_URL="${WEB_SITE}$TARBALL"
13 DEPENDS="gtk+ cairo xorg-libxcb xorg-libXrandr"
14 BUILD_DEPENDS="gtk+-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 touch version2.def
21 sed -i 's/-pedantic//' Makefile mkfiles.pl
22 sed -i 's/sizeof(lld)/sizeof(*lld)/' lightup.c
23 mkdir -p $DESTDIR/usr/local/games 2> /dev/null
24 make &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/pixmaps \
32 $fs/usr/share/applications
34 cp -a $install/usr/local/games $fs/usr
36 for img in $(ls $src/icons/*16d24*)
37 do
38 cp $img $fs/usr/share/pixmaps/$(basename $img -16d24.png).png
39 done
41 cp -a $stuff/*.desktop $fs/usr/share/applications
42 }