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