wok-next annotate cgames/receipt @ rev 20645
Up libjpeg-turbo (1.5.3), libpng16 (1.6.34), libraw (0.18.7), shared-mime-info (1.9), tree (1.7.0), xapian (1.4.5); add time.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 01 23:19:32 2018 +0300 (2018-05-01) |
parents | 8f50006d2661 |
children | d5aab818505e |
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 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 } |