wok-6.x view cgames/receipt @ rev 24400
updated cgames (2.2a -> 2.2b)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Feb 08 15:46:39 2022 +0100 (2022-02-08) |
parents | a5216cf15fbc |
children | afae00265386 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cgames"
4 VERSION="2.2b"
5 CATEGORY="games"
6 SHORT_DESC="Games for the Linux Console."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.muppetlabs.com/~breadbox/software/cgames.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://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 }