wok view cgames/receipt @ rev 14904

kbd*: up 1.15.5; retawq and kbd: place .mo files to right place; locale-pl: try to fix; slitaz-i18n: no more pcmanfm, kbd really not a core package but contains translations for kbd-base.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jul 31 20:21:51 2013 +0300 (2013-07-31)
parents d6678fe90ec9
children 380ffe05937a
line source
1 # SliTaz package receipt.
3 PACKAGE="cgames"
4 VERSION="2.2"
5 CATEGORY="games"
6 SHORT_DESC="Games for the Linux Console."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL"
12 DEPENDS="ncurses"
13 BUILD_DEPENDS="ncurses-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 sed -i -e 's|install -.*\$|&(destdir)/$|' \
20 -e "s|^prefix|destdir = $DESTDIR\\n&|" \
21 -e 's/g games/g root/' */Makefile.in
22 sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h
23 ./configure --prefix=/usr \
24 --mandir=/usr/share/man \
25 --datadir=/usr/share \
26 --disable-mouse \
27 --with-ncurses \
28 $CONFIGURE_ARGS &&
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
37 cp -a $install/usr/games $fs/usr
38 cp -a $install/usr/share/cblocks $fs/usr/share
39 cp -a $install/usr/share/csokoban $fs/usr/share
41 find $fs -type f -name '*.txt' -exec chmod a-x \{\} \;
42 }