wok-current view cgames/receipt @ rev 25689
Fix cache not exist for getall function (typo)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 15 08:05:17 2024 +0000 (8 months ago) |
parents | 4bc80d930fe0 |
children |
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed '/cgames-/!d;s|.*cgames-||;s|.tar.*||' | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -ltinfo"
29 sed -i -e 's|install -.*\$|&(destdir)/$|' \
30 -e "s|^prefix|destdir = $DESTDIR\\n&|" \
31 -e 's/g games/g root/' \
32 */Makefile.in
33 sed -i 's/.* getline(.*/#define getline mygetline\n&/' \
34 */fileread.h
36 ./configure \
37 --prefix=/usr \
38 --mandir=/usr/share/man \
39 --datadir=/usr/share \
40 --disable-mouse \
41 --with-ncurses \
42 $CONFIGURE_ARGS &&
43 make &&
44 make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share
52 cp -a $install/usr/games $fs/usr
53 cp -a $install/usr/share/cblocks $fs/usr/share
54 cp -a $install/usr/share/csokoban $fs/usr/share
56 find $fs -type f -name '*.txt' -exec chmod a-x \{\} \;
57 }