wok view cgdb/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents fb22330086d8
children 21560db18fe0
line source
1 # SliTaz package receipt.
3 PACKAGE="cgdb"
4 VERSION="0.7.1"
5 CATEGORY="development"
6 TAGS="debugger"
7 SHORT_DESC="Curses interface for GDB."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://cgdb.github.io/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://cgdb.me/files/$TARBALL"
15 DEPENDS="gcc83-lib-base gdb ncurses readline"
16 BUILD_DEPENDS="gcc83 ncurses-dev readline-dev texinfo"
18 CROSS="error: cannot check for file existence when cross compiling"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/cgdb/cgdb/tags 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 CC=gcc-83 \
32 CXX=g++-83 \
33 --build=$HOST_SYSTEM \
34 --host=$HOST_SYSTEM &&
35 make &&
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 }