wok-stable view cgames/receipt @ rev 12460
fix symlinks
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 28 09:09:24 2017 +0200 (2017-04-28) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cgames"
4 VERSION="2.2"
5 CATEGORY="games"
6 SHORT_DESC="Games for the Linux Console."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html"
10 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL"
11 DEPENDS="ncurses"
12 BUILD_DEPENDS="ncurses-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i -e 's|install -.*\$|&(destdir)/$|' \
19 -e "s|^prefix|destdir = $DESTDIR\\n&|" \
20 -e 's/g games/g root/' */Makefile.in
21 sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h
22 ./configure --prefix=/usr \
23 --mandir=/usr/share/man \
24 --datadir=/usr/share \
25 --disable-mouse \
26 --with-ncurses \
27 $CONFIGURE_ARGS &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share
36 cp -a $_pkg/usr/games $fs/usr
37 cp -a $_pkg/usr/share/cblocks $fs/usr/share
38 cp -a $_pkg/usr/share/csokoban $fs/usr/share
39 }