wok-6.x annotate cgames/receipt @ rev 24345
azpainter: added build dependency tiff-dev
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 02 09:55:35 2022 +0100 (2022-02-02) |
parents | 17e313b5b9c1 |
children | 4bc80d930fe0 |
rev | line source |
---|---|
pascal@9483 | 1 # SliTaz package receipt. |
pascal@9483 | 2 |
pascal@9483 | 3 PACKAGE="cgames" |
Hans-G?nter@22588 | 4 VERSION="2.2a" |
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" |
Hans-G?nter@22588 | 10 |
pascal@9483 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@9483 | 12 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL" |
al@14793 | 13 |
pascal@9483 | 14 DEPENDS="ncurses" |
pascal@9483 | 15 BUILD_DEPENDS="ncurses-dev" |
pascal@9483 | 16 |
pascal@9483 | 17 # Rules to configure and make the package. |
pascal@9483 | 18 compile_rules() |
pascal@9483 | 19 { |
pascal@17670 | 20 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@22588 | 21 |
Hans-G?nter@22588 | 22 sed -i -e 's|install -.*\$|&(destdir)/$|' \ |
Hans-G?nter@22588 | 23 -e "s|^prefix|destdir = $DESTDIR\\n&|" \ |
Hans-G?nter@22588 | 24 -e 's/g games/g root/' \ |
Hans-G?nter@22588 | 25 */Makefile.in |
Hans-G?nter@22588 | 26 sed -i 's/.* getline(.*/#define getline mygetline\n&/' \ |
Hans-G?nter@22588 | 27 */fileread.h |
Hans-G?nter@22588 | 28 |
Hans-G?nter@22588 | 29 ./configure \ |
Hans-G?nter@22588 | 30 --prefix=/usr \ |
Hans-G?nter@22588 | 31 --mandir=/usr/share/man \ |
Hans-G?nter@22588 | 32 --datadir=/usr/share \ |
Hans-G?nter@22588 | 33 --disable-mouse \ |
Hans-G?nter@22588 | 34 --with-ncurses \ |
Hans-G?nter@22588 | 35 $CONFIGURE_ARGS && |
pascal@9483 | 36 make && |
pascal@9483 | 37 make install |
pascal@9483 | 38 } |
pascal@9483 | 39 |
pascal@9483 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@9483 | 41 genpkg_rules() |
pascal@9483 | 42 { |
pascal@9483 | 43 mkdir -p $fs/usr/share |
Hans-G?nter@22588 | 44 |
Hans-G?nter@22588 | 45 cp -a $install/usr/games $fs/usr |
Hans-G?nter@22588 | 46 cp -a $install/usr/share/cblocks $fs/usr/share |
Hans-G?nter@22588 | 47 cp -a $install/usr/share/csokoban $fs/usr/share |
al@14793 | 48 |
al@14793 | 49 find $fs -type f -name '*.txt' -exec chmod a-x \{\} \; |
pascal@9483 | 50 } |