wok-current annotate gnuchess/receipt @ rev 8143
aufs: aufs_type.h file will be install in aufs instead of linux-module-headers. It needed to be in /usr/include/linux folder anyways.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 25 00:03:50 2011 +0000 (2011-01-25) |
parents | |
children | 31ba4f705fa2 |
rev | line source |
---|---|
pascal@4567 | 1 # SliTaz package receipt. |
pascal@4567 | 2 |
pascal@4567 | 3 PACKAGE="gnuchess" |
pascal@4567 | 4 VERSION="5.07" |
pascal@4567 | 5 CATEGORY="games" |
pascal@4567 | 6 SHORT_DESC="GNU Chess lets most modern computers play a full game of chess." |
pascal@4567 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@4567 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@4567 | 9 WEB_SITE="http://www.gnu.org/software/chess/chess.html" |
pascal@4567 | 10 WGET_URL="$GNU_MIRROR/chess/$TARBALL" |
pascal@4567 | 11 DEPENDS="ncurses readline" |
pascal@4567 | 12 BUILD_DEPENDS="ncurses-dev readline-dev" |
pascal@4567 | 13 |
pascal@4567 | 14 # Rules to configure and make the package. |
pascal@4567 | 15 compile_rules() |
pascal@4567 | 16 { |
pascal@4567 | 17 cd $src |
pascal@4567 | 18 find -name '*.c' | xargs sed -i 's/getline/get_line/g' src/common.h |
pascal@4567 | 19 sed -i 's/input_thread/static_input_thread/' src/input.c |
pascal@4567 | 20 ./configure \ |
pascal@4567 | 21 --prefix=/usr \ |
pascal@4567 | 22 --libexecdir=/usr/lib \ |
pascal@4567 | 23 --infodir=/usr/share/info \ |
pascal@4567 | 24 --mandir=/usr/share/man \ |
pascal@4567 | 25 $CONFIGURE_ARGS && |
pascal@4567 | 26 make && |
pascal@4567 | 27 make DESTDIR=$PWD/_pkg install |
pascal@4567 | 28 } |
pascal@4567 | 29 |
pascal@4567 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4567 | 31 genpkg_rules() |
pascal@4567 | 32 { |
pascal@4567 | 33 cp -a $_pkg/usr $fs |
pascal@4567 | 34 } |