wok-6.x view cgames/receipt @ rev 23628
updated rust and rust-cargo (1.37.0 -> 1.42.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 10:33:21 2020 +0100 (2020-04-16) |
parents | 17e313b5b9c1 |
children | 4bc80d930fe0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cgames"
4 VERSION="2.2a"
5 CATEGORY="games"
6 SHORT_DESC="Games for the Linux Console."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL"
14 DEPENDS="ncurses"
15 BUILD_DEPENDS="ncurses-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LDFLAGS="$LDFLAGS -ltinfo"
22 sed -i -e 's|install -.*\$|&(destdir)/$|' \
23 -e "s|^prefix|destdir = $DESTDIR\\n&|" \
24 -e 's/g games/g root/' \
25 */Makefile.in
26 sed -i 's/.* getline(.*/#define getline mygetline\n&/' \
27 */fileread.h
29 ./configure \
30 --prefix=/usr \
31 --mandir=/usr/share/man \
32 --datadir=/usr/share \
33 --disable-mouse \
34 --with-ncurses \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share
45 cp -a $install/usr/games $fs/usr
46 cp -a $install/usr/share/cblocks $fs/usr/share
47 cp -a $install/usr/share/csokoban $fs/usr/share
49 find $fs -type f -name '*.txt' -exec chmod a-x \{\} \;
50 }