wok-6.x annotate cgdb/receipt @ rev 24361
glibmm, glibmm-dev: fix Private:gobj()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 04 09:24:50 2022 +0000 (2022-02-04) |
parents | f3bcc468a2c4 |
children | fb22330086d8 |
rev | line source |
---|---|
erjo@4817 | 1 # SliTaz package receipt. |
erjo@4817 | 2 |
erjo@4817 | 3 PACKAGE="cgdb" |
Hans-G?nter@22589 | 4 VERSION="0.7.1" |
erjo@4817 | 5 CATEGORY="development" |
Hans-G?nter@22589 | 6 TAGS="debugger" |
Hans-G?nter@22589 | 7 SHORT_DESC="Curses interface for GDB." |
erjo@4817 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15579 | 9 LICENSE="GPL2" |
Hans-G?nter@22589 | 10 WEB_SITE="http://cgdb.sourceforge.net/" |
Hans-G?nter@22589 | 11 |
erjo@4817 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22590 | 13 WGET_URL="https://cgdb.me/files/$TARBALL" |
Hans-G?nter@22589 | 14 |
Hans-G?nter@22589 | 15 DEPENDS="gcc83-lib-base gdb ncurses readline" |
Hans-G?nter@22589 | 16 BUILD_DEPENDS="gcc83 ncurses-dev readline-dev texinfo" |
Hans-G?nter@22589 | 17 |
pankso@10393 | 18 CROSS="error: cannot check for file existence when cross compiling" |
erjo@4817 | 19 |
pascal@24361 | 20 # What is the latest version available today? |
pascal@24361 | 21 current_version() |
pascal@24361 | 22 { |
pascal@24361 | 23 wget -O - https://sourceforge.net/projects/cgdb/files/cgdb/ 2>/dev/null | \ |
pascal@24361 | 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24361 | 25 sed '/scope="row/!d;s|.*/cgdb/cgdb-||;s|/.*||;q' |
pascal@24361 | 26 } |
pascal@24361 | 27 |
erjo@4817 | 28 # Rules to configure and make the package. |
erjo@4817 | 29 compile_rules() |
erjo@4817 | 30 { |
Hans-G?nter@22589 | 31 ./configure \ |
Hans-G?nter@22589 | 32 CC=gcc-83 \ |
Hans-G?nter@22589 | 33 CXX=g++-83 \ |
Hans-G?nter@22589 | 34 --build=$HOST_SYSTEM \ |
Hans-G?nter@22589 | 35 --host=$HOST_SYSTEM && |
Hans-G?nter@22589 | 36 make && |
Hans-G?nter@22589 | 37 make install |
erjo@4817 | 38 } |
erjo@4817 | 39 |
erjo@4817 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4817 | 41 genpkg_rules() |
erjo@4817 | 42 { |
erjo@4817 | 43 mkdir -p $fs/usr |
Hans-G?nter@22589 | 44 cp -a $install/usr/bin $fs/usr |
erjo@4817 | 45 } |