wok-6.x view tcc/receipt @ rev 24966

updated nettle and nettle-dev (3.5.1 -> 3.7.3)
author Hans-G?nter Theisgen
date Mon Apr 25 07:28:45 2022 +0100 (2022-04-25)
parents 951896e3e5b3
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tcc"
4 VERSION="0.9.27"
5 CATEGORY="development"
6 SHORT_DESC="Fast Tiny C Compiler."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 LICENSE="MIT LGPL2.1"
10 WEB_SITE="https://bellard.org/tcc/"
11 WGET_URL="http://download.savannah.nongnu.org/releases/tinycc/$TARBALL"
12 TAGS="compiler C assembler"
13 #HOST_ARCH="i486 arm"
15 DEPENDS="tcc-common"
16 BUILD_DEPENDS="perl texinfo"
18 # Perl is installed in a cross env.
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="" ;;
21 esac
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - ${WGET_URL%/*} 2>/dev/null | \
27 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 sed -i 's|uname -m|echo i686|' configure
34 case "$ARCH" in
35 arm)
36 ./configure \
37 --prefix=/usr \
38 --cross-prefix=arm-slitaz-linux-gnueabi- \
39 --cpu=armv4l ;;
40 *)
41 ./configure \
42 --prefix=/usr \
43 --enable-cross ;;
44 esac &&
45 make && make -j 1 test &&
46 make -j 1 DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/bin
53 cp -a $install/usr/bin/tcc $fs/usr/bin
54 }