wok view h8300-binutils/receipt @ rev 24810

libmypaint: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 22 15:59:26 2022 +0000 (2022-03-22)
parents 051931e905b0
children d79ed38ace18
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-binutils"
4 SOURCE="binutils"
5 VERSION="2.16.1"
6 CATEGORY="development"
7 SHORT_DESC="binutils targeting the H8/300."
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.gnu.org/software/binutils/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
13 TAGS="assembler linker"
15 BUILD_DEPENDS="slitaz-toolchain bison flex"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 h8300_conf()
25 {
26 # Configuration only needs included if we're in the build/wok environment
27 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
28 . $WOK/h8300-toolchain/stuff/h8300.conf
29 fi
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 h8300_conf
36 ./configure \
37 --target=$H8300_TARGET \
38 --prefix=/usr \
39 --disable-nls \
40 --infodir=/usr/share/info \
41 --mandir=/usr/share/man \
42 $CONFIGURE_ARGS &&
43 make $MAKEFLAGS &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 h8300_conf
51 mkdir -p $fs/usr $fs$H8300_ROOT
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/$H8300_TARGET/* $fs$H8300_ROOT
54 # do not need to copy lib/libiberty.a
56 strip -s $fs$H8300_ROOT/bin/*
57 }