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