wok annotate gnuchess/receipt @ rev 24471
updated dcfldd (1.3.4-1 -> 1.7.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 15:14:14 2022 +0100 (2022-02-17) |
parents | 105a5deb6ca5 |
children | f134e45c99c5 |
rev | line source |
---|---|
pascal@4567 | 1 # SliTaz package receipt. |
pascal@4567 | 2 |
pascal@4567 | 3 PACKAGE="gnuchess" |
Hans-G?nter@20981 | 4 VERSION="6.2.5" |
pascal@4567 | 5 CATEGORY="games" |
Hans-G?nter@20981 | 6 TAGS="chess" |
pascal@4567 | 7 SHORT_DESC="GNU Chess lets most modern computers play a full game of chess." |
pascal@4567 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
Hans-G?nter@20981 | 10 WEB_SITE="https://www.gnu.org/software/chess/chess.html" |
Hans-G?nter@20981 | 11 |
pascal@4567 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@4567 | 13 WGET_URL="$GNU_MIRROR/chess/$TARBALL" |
Hans-G?nter@20981 | 14 |
pascal@4567 | 15 DEPENDS="ncurses readline" |
pascal@4567 | 16 BUILD_DEPENDS="ncurses-dev readline-dev" |
pascal@4567 | 17 |
pascal@24336 | 18 # What is the latest version available today? |
pascal@24336 | 19 current_version() |
pascal@24336 | 20 { |
pascal@24336 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 23 } |
pascal@24336 | 24 |
pascal@4567 | 25 # Rules to configure and make the package. |
pascal@4567 | 26 compile_rules() |
pascal@4567 | 27 { |
slaxemulator@10160 | 28 #find -name '*.c' | xargs sed -i 's/getline/get_line/g' src/common.h |
slaxemulator@10160 | 29 #sed -i 's/input_thread/static_input_thread/' src/input.c |
Hans-G?nter@20981 | 30 |
pascal@4567 | 31 ./configure \ |
pascal@4567 | 32 --libexecdir=/usr/lib \ |
pascal@4567 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@20981 | 34 make -j1 && |
slaxemulator@10160 | 35 make -j1 install |
pascal@4567 | 36 } |
pascal@4567 | 37 |
pascal@4567 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4567 | 39 genpkg_rules() |
pascal@4567 | 40 { |
pascal@14999 | 41 cp -a $install/usr $fs |
pascal@4567 | 42 } |