wok-6.x annotate cgames/receipt @ rev 15164
Up xorg-xf86-input-void (1.4.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 15 18:48:58 2013 +0000 (2013-08-15) |
parents | 00c51b3a010b |
children | 17e313b5b9c1 |
rev | line source |
---|---|
pascal@9483 | 1 # SliTaz package receipt. |
pascal@9483 | 2 |
pascal@9483 | 3 PACKAGE="cgames" |
pascal@9483 | 4 VERSION="2.2" |
pascal@9483 | 5 CATEGORY="games" |
pascal@9483 | 6 SHORT_DESC="Games for the Linux Console." |
pascal@9483 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@14793 | 9 WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html" |
pascal@9483 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@9483 | 11 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL" |
al@14793 | 12 |
pascal@9483 | 13 DEPENDS="ncurses" |
pascal@9483 | 14 BUILD_DEPENDS="ncurses-dev" |
pascal@9483 | 15 |
pascal@9483 | 16 # Rules to configure and make the package. |
pascal@9483 | 17 compile_rules() |
pascal@9483 | 18 { |
pascal@9483 | 19 cd $src |
pascal@9483 | 20 sed -i -e 's|install -.*\$|&(destdir)/$|' \ |
pascal@9483 | 21 -e "s|^prefix|destdir = $DESTDIR\\n&|" \ |
pascal@9483 | 22 -e 's/g games/g root/' */Makefile.in |
pascal@9483 | 23 sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h |
pascal@9483 | 24 ./configure --prefix=/usr \ |
pascal@9483 | 25 --mandir=/usr/share/man \ |
pascal@9483 | 26 --datadir=/usr/share \ |
pascal@9483 | 27 --disable-mouse \ |
pascal@9483 | 28 --with-ncurses \ |
pascal@9483 | 29 $CONFIGURE_ARGS && |
pascal@9483 | 30 make && |
pascal@9483 | 31 make install |
pascal@9483 | 32 } |
pascal@9483 | 33 |
pascal@9483 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@9483 | 35 genpkg_rules() |
pascal@9483 | 36 { |
pascal@9483 | 37 mkdir -p $fs/usr/share |
al@14793 | 38 cp -a $install/usr/games $fs/usr |
al@14793 | 39 cp -a $install/usr/share/cblocks $fs/usr/share |
al@14793 | 40 cp -a $install/usr/share/csokoban $fs/usr/share |
al@14793 | 41 |
al@14793 | 42 find $fs -type f -name '*.txt' -exec chmod a-x \{\} \; |
pascal@9483 | 43 } |