wok-next annotate cgames/receipt @ rev 21039
mariadb 10.3.10
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 09 03:18:57 2018 +0200 (2018-11-09) |
parents | 466bca9334ef |
children | 5925d0e91dc7 |
rev | line source |
---|---|
al@21020 | 1 # SliTaz package receipt v2. |
pascal@9483 | 2 |
pascal@9483 | 3 PACKAGE="cgames" |
pascal@9483 | 4 VERSION="2.2" |
pascal@9483 | 5 CATEGORY="games" |
al@21020 | 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" |
al@21020 | 10 |
pascal@9483 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@9483 | 12 WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL" |
al@14793 | 13 |
pascal@9483 | 14 BUILD_DEPENDS="ncurses-dev" |
pascal@9483 | 15 |
al@21020 | 16 compile_rules() { |
pascal@9483 | 17 sed -i -e 's|install -.*\$|&(destdir)/$|' \ |
al@21020 | 18 -e "s|^prefix|destdir = $install\\n&|" \ |
pascal@9483 | 19 -e 's/g games/g root/' */Makefile.in |
pascal@9483 | 20 sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h |
al@21020 | 21 |
al@21020 | 22 ./configure \ |
al@21020 | 23 --prefix=/usr \ |
al@21020 | 24 --mandir=/usr/share/man \ |
al@21020 | 25 --datadir=/usr/share \ |
al@21020 | 26 --disable-mouse \ |
al@21020 | 27 --with-ncurses \ |
al@21020 | 28 $CONFIGURE_ARGS && |
pascal@9483 | 29 make && |
al@21020 | 30 make install || return 1 |
al@21020 | 31 |
al@21020 | 32 find $install -type f -name '*.txt' -exec chmod a-x '{}' \; |
pascal@9483 | 33 } |
pascal@9483 | 34 |
al@21020 | 35 genpkg_rules() { |
al@21020 | 36 copy @std |
al@21020 | 37 DEPENDS="ncurses" |
pascal@9483 | 38 } |