wok-6.x annotate h8300-gdb/receipt @ rev 25048
glusterfs: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 04 14:47:50 2022 +0000 (2022-06-04) |
parents | 5f6c5106b1f5 |
children |
rev | line source |
---|---|
pascal@2176 | 1 # SliTaz package receipt. |
pascal@2176 | 2 |
pascal@2176 | 3 PACKAGE="h8300-gdb" |
pascal@2176 | 4 SOURCE="gdb" |
pascal@25048 | 5 VERSION="7.1a" |
pascal@2176 | 6 CATEGORY="development" |
pascal@2176 | 7 SHORT_DESC="The GNU Project Debugger targeting the H8/300." |
pascal@2176 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@15215 | 9 LICENSE="GPL2" |
pascal@2176 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2176 | 11 WEB_SITE="http://www.gnu.org/software/gdb/" |
pascal@2176 | 12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" |
pascal@2176 | 13 |
pascal@15215 | 14 DEPENDS="ncurses expat" |
pascal@15215 | 15 BUILD_DEPENDS="slitaz-toolchain ncurses-dev expat-dev" |
pascal@15215 | 16 |
rcx@4034 | 17 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 18 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 19 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 20 fi |
rcx@4034 | 21 |
pascal@24336 | 22 # What is the latest version available today? |
pascal@24336 | 23 current_version() |
pascal@24336 | 24 { |
pascal@24336 | 25 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24340 | 26 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 27 } |
pascal@24336 | 28 |
pascal@2176 | 29 # Rules to configure and make the package. |
pascal@2176 | 30 compile_rules() |
pascal@2176 | 31 { |
pascal@24336 | 32 # Configuration only needs included if we're in the build/wok environment |
pascal@24336 | 33 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
pascal@24336 | 34 . $WOK/h8300-toolchain/stuff/h8300.conf |
pascal@24336 | 35 fi |
rcx@4034 | 36 mkdir -p $SOURCE-$VERSION-build |
rcx@4034 | 37 cd $SOURCE-$VERSION-build |
pascal@2176 | 38 $src/configure \ |
rcx@4034 | 39 --disable-werror \ |
rcx@4034 | 40 --target=$H8300_TARGET \ |
pascal@2176 | 41 --prefix=/usr \ |
pascal@2176 | 42 --infodir=/usr/share/info \ |
pascal@2176 | 43 --mandir=/usr/share/man \ |
pascal@2176 | 44 $CONFIGURE_ARGS && |
pascal@15265 | 45 make $MAKEFLAGS && |
pascal@15215 | 46 make DESTDIR=$DESTDIR install |
pascal@2176 | 47 } |
pascal@2176 | 48 |
pascal@2176 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 50 genpkg_rules() |
pascal@2176 | 51 { |
pascal@2176 | 52 mkdir -p $fs/usr |
pascal@15215 | 53 cp -a $install/usr/bin $fs/usr |
pascal@2176 | 54 } |
rcx@4034 | 55 |
rcx@4034 | 56 # Rules to clean the package |
rcx@4034 | 57 clean_wok() |
rcx@4034 | 58 { |
rcx@4034 | 59 rm -r -f $SOURCE-$VERSION-build |
rcx@4034 | 60 } |