wok-6.x annotate cgames/receipt @ rev 14793
Normalize ownership and permissions: caps, catfish, cdparanoia-III-dev, cgames, chemtool.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 08 17:53:48 2013 +0300 (2013-07-08) |
parents | d6678fe90ec9 |
children | 380ffe05937a |
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" |
al@14793 | 8 WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html" |
pascal@9483 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@9483 | 10 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL" |
al@14793 | 11 |
pascal@9483 | 12 DEPENDS="ncurses" |
pascal@9483 | 13 BUILD_DEPENDS="ncurses-dev" |
pascal@9483 | 14 |
pascal@9483 | 15 # Rules to configure and make the package. |
pascal@9483 | 16 compile_rules() |
pascal@9483 | 17 { |
pascal@9483 | 18 cd $src |
pascal@9483 | 19 sed -i -e 's|install -.*\$|&(destdir)/$|' \ |
pascal@9483 | 20 -e "s|^prefix|destdir = $DESTDIR\\n&|" \ |
pascal@9483 | 21 -e 's/g games/g root/' */Makefile.in |
pascal@9483 | 22 sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h |
pascal@9483 | 23 ./configure --prefix=/usr \ |
pascal@9483 | 24 --mandir=/usr/share/man \ |
pascal@9483 | 25 --datadir=/usr/share \ |
pascal@9483 | 26 --disable-mouse \ |
pascal@9483 | 27 --with-ncurses \ |
pascal@9483 | 28 $CONFIGURE_ARGS && |
pascal@9483 | 29 make && |
pascal@9483 | 30 make install |
pascal@9483 | 31 } |
pascal@9483 | 32 |
pascal@9483 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@9483 | 34 genpkg_rules() |
pascal@9483 | 35 { |
pascal@9483 | 36 mkdir -p $fs/usr/share |
al@14793 | 37 cp -a $install/usr/games $fs/usr |
al@14793 | 38 cp -a $install/usr/share/cblocks $fs/usr/share |
al@14793 | 39 cp -a $install/usr/share/csokoban $fs/usr/share |
al@14793 | 40 |
al@14793 | 41 find $fs -type f -name '*.txt' -exec chmod a-x \{\} \; |
pascal@9483 | 42 } |