wok annotate gdb/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 e5abf3dfdfb0
children 85ce080d4127
rev   line source
erjo@1727 1 # SliTaz package receipt.
erjo@1727 2
erjo@1727 3 PACKAGE="gdb"
pankso@16316 4 VERSION="7.7"
erjo@1727 5 CATEGORY="development"
erjo@1727 6 SHORT_DESC="The GNU Project Debugger."
erjo@1727 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
rcx@5984 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@1727 10 WEB_SITE="http://www.gnu.org/software/gdb/"
rcx@5984 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@16316 12 HOST_ARCH="i486 arm"
erjo@1727 13
pascal@15000 14 DEPENDS="ncurses expat glibc-dev"
pascal@15000 15 BUILD_DEPENDS="ncurses-dev readline-dev"
pascal@15000 16
pascal@24336 17 # What is the latest version available today?
pascal@24336 18 current_version()
pascal@24336 19 {
pascal@24336 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 22 }
pascal@24336 23
erjo@1727 24 # Rules to configure and make the package.
erjo@1727 25 compile_rules()
erjo@1727 26 {
pankso@16316 27 ./configure \
erjo@4818 28 --with-python=no \
pankso@16316 29 --disable-werror \
pankso@16316 30 $CONFIGURE_ARGS && \
pankso@16316 31 make && make install
erjo@1727 32 }
erjo@1727 33
erjo@1727 34 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1727 35 genpkg_rules()
erjo@1727 36 {
erjo@1727 37 mkdir -p $fs/usr
slaxemulator@13079 38 cp -a $install/usr/bin $fs/usr
erjo@1727 39 }
erjo@1727 40