wok-6.x annotate gnuchess/receipt @ rev 24662

updated imagemagick and imagemagick-dev (7.0.9.26 -> 7.1.0.27)
author Hans-G?nter Theisgen
date Fri Mar 11 14:03:06 2022 +0100 (2022-03-11)
parents 71360a13cd94
children
rev   line source
pascal@4567 1 # SliTaz package receipt.
pascal@4567 2
pascal@4567 3 PACKAGE="gnuchess"
Hans-G?nter@24610 4 VERSION="6.2.9"
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
Hans-G?nter@24610 15 SUGGESTED="gnuchess-lang"
pascal@4567 16 DEPENDS="ncurses readline"
pascal@4567 17 BUILD_DEPENDS="ncurses-dev readline-dev"
pascal@4567 18
pascal@24336 19 # What is the latest version available today?
pascal@24336 20 current_version()
pascal@24336 21 {
pascal@24336 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 24 }
pascal@24336 25
pascal@4567 26 # Rules to configure and make the package.
pascal@4567 27 compile_rules()
pascal@4567 28 {
slaxemulator@10160 29 #find -name '*.c' | xargs sed -i 's/getline/get_line/g' src/common.h
slaxemulator@10160 30 #sed -i 's/input_thread/static_input_thread/' src/input.c
Hans-G?nter@20981 31
Hans-G?nter@24610 32 chmod a+x install-sh &&
Hans-G?nter@24610 33
Hans-G?nter@24610 34 ./configure \
Hans-G?nter@24610 35 --libexecdir=/usr/lib \
pascal@4567 36 $CONFIGURE_ARGS &&
Hans-G?nter@24610 37 make &&
Hans-G?nter@24610 38 make install
pascal@4567 39 }
pascal@4567 40
pascal@4567 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4567 42 genpkg_rules()
pascal@4567 43 {
Hans-G?nter@24610 44 cp -a $install/usr $fs
Hans-G?nter@24610 45 rm -rf $fs/usr/share/man
Hans-G?nter@24610 46
Hans-G?nter@24610 47 # moved to package gnuchess-lang
Hans-G?nter@24610 48 rm -rf $fs/usr/share/locale
pascal@4567 49 }