wok-6.x view cgdb/receipt @ rev 24562

updated fpm2 (0.79 -> 0.90)
author Hans-G?nter Theisgen
date Fri Feb 25 16:44:38 2022 +0100 (2022-02-25)
parents 370da83187ab
children eec3edc6ef52
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="http://cgdb.sourceforge.net/"
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 }