wok-6.x annotate cgdb/receipt @ rev 24909
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 09 14:28:38 2022 +0000 (2022-04-09) |
parents | fb22330086d8 |
children | 21560db18fe0 |
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" |
pascal@24893 | 10 WEB_SITE="https://cgdb.github.io/" |
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@24384 | 23 wget -O - https://github.com/cgdb/cgdb/tags 2>/dev/null | \ |
pascal@24384 | 24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24361 | 25 } |
pascal@24361 | 26 |
erjo@4817 | 27 # Rules to configure and make the package. |
erjo@4817 | 28 compile_rules() |
erjo@4817 | 29 { |
Hans-G?nter@22589 | 30 ./configure \ |
Hans-G?nter@22589 | 31 CC=gcc-83 \ |
Hans-G?nter@22589 | 32 CXX=g++-83 \ |
Hans-G?nter@22589 | 33 --build=$HOST_SYSTEM \ |
Hans-G?nter@22589 | 34 --host=$HOST_SYSTEM && |
Hans-G?nter@22589 | 35 make && |
Hans-G?nter@22589 | 36 make install |
erjo@4817 | 37 } |
erjo@4817 | 38 |
erjo@4817 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4817 | 40 genpkg_rules() |
erjo@4817 | 41 { |
erjo@4817 | 42 mkdir -p $fs/usr |
Hans-G?nter@22589 | 43 cp -a $install/usr/bin $fs/usr |
erjo@4817 | 44 } |