wok-current view gdb-python/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 85ce080d4127
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gdb-python"
4 VERSION="11.2"
5 CATEGORY="development"
6 SHORT_DESC="The GNU Project Debugger with Python support."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/gdb/"
11 SOURCE="gdb"
12 TARBALL="$SOURCE-$VERSION.tar.xz"
13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
14 PROVIDE="gdb"
15 SUGGESTED="gdb-lang"
16 DEPENDS="expat gcc-lib-base glibc-dev gmp ncurses python"
17 BUILD_DEPENDS="gcc gmp-dev ncurses-dev python-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --disable-werror \
31 $CONFIGURE_ARGS &&
32 make $MAKEFLAGS &&
33 make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
41 cook_copy_folders bin
42 cook_copy_folders lib
43 cp -a $install/usr/share/gdb $fs/usr/share
44 }