wok annotate gdb-python/receipt @ rev 24482

updated diffutils (3.7 -> 3.8)
author Hans-G?nter Theisgen
date Fri Feb 18 14:45:09 2022 +0100 (2022-02-18)
parents 13835bce7189
children 85ce080d4127
rev   line source
erjo@4819 1 # SliTaz package receipt.
erjo@4819 2
erjo@4819 3 PACKAGE="gdb-python"
pankso@16316 4 VERSION="7.7"
erjo@4819 5 CATEGORY="development"
erjo@4819 6 SHORT_DESC="The GNU Project Debugger with Python support."
erjo@4819 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
erjo@4820 9 SOURCE="gdb"
slaxemulator@11008 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
erjo@4819 11 WEB_SITE="http://www.gnu.org/software/gdb/"
slaxemulator@11008 12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
erjo@4819 13 PROVIDE="gdb"
erjo@4819 14
pascal@15000 15 DEPENDS="ncurses expat glibc-dev python"
pascal@15000 16 BUILD_DEPENDS="ncurses-dev python-dev"
pascal@15000 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;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 23 }
pascal@24336 24
erjo@4819 25 # Rules to configure and make the package.
erjo@4819 26 compile_rules()
erjo@4819 27 {
pankso@16316 28 ./configure \
pankso@16316 29 --disable-werror \
pankso@16316 30 $CONFIGURE_ARGS &&
pankso@16316 31 make $MAKEFLAGS && make install
erjo@4819 32 }
erjo@4819 33
erjo@4819 34 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@4819 35 genpkg_rules()
erjo@4819 36 {
pascal@18163 37 mkdir -p $fs/usr/share
slaxemulator@13079 38 cp -a $install/usr/bin $fs/usr
pascal@18163 39 cp -a $install/usr/lib $fs/usr
pascal@18163 40 cp -a $install/usr/share/gdb $fs/usr/share
erjo@4819 41 }