wok annotate nqc/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | b0069c845544 |
children |
rev | line source |
---|---|
rcx@3924 | 1 # SliTaz package receipt. |
rcx@3924 | 2 |
rcx@3924 | 3 PACKAGE="nqc" |
pascal@23065 | 4 VERSION="3.1.r6" |
pascal@23065 | 5 PATCHLEVEL="4" |
rcx@3924 | 6 CATEGORY="development" |
rcx@3991 | 7 SHORT_DESC="Compiler for the Not Quite C programming language." |
rcx@3924 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@15584 | 9 LICENSE="MPL" |
pascal@23065 | 10 TARBALL="$PACKAGE-$VERSION-$PATCHLEVEL.bz2" |
pascal@25469 | 11 WEB_SITE="https://bricxcc.sourceforge.net/nqc/" |
rcx@3924 | 12 #WGET_URL="http://bricxcc.sourceforge.net/nqc/release/$TARBALL" |
pascal@25589 | 13 #WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL" |
pascal@25589 | 14 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL" |
jozee@4969 | 15 TAGS="compiler language" |
rcx@3924 | 16 |
pascal@15584 | 17 DEPENDS="glibc-base gcc-lib-base" |
pascal@15584 | 18 BUILD_DEPENDS="flex" |
pascal@15584 | 19 |
pascal@24361 | 20 # What is the latest version available today? |
pascal@24361 | 21 current_version() |
pascal@24361 | 22 { |
pascal@24361 | 23 wget -O - http://bricxcc.sourceforge.net/nqc/release/index.html 2>/dev/null | \ |
pascal@24361 | 24 sed '/tgz/!d;s|.*nqc-||;s|.tgz.*||;q' |
pascal@24361 | 25 } |
pascal@24361 | 26 |
rcx@3924 | 27 # Rules to configure and make the package. |
rcx@3924 | 28 compile_rules() |
rcx@3924 | 29 { |
pascal@23065 | 30 ln -s $PACKAGE-$VERSION ../$PACKAGE-$VERSION-$PATCHLEVEL |
pascal@12796 | 31 [ -s $TARBALL ] && tar xjf $TARBALL -C .. |
gokhlayeh@8863 | 32 make -j1 TOOLPREFIX="$TOOLPREFIX" \ |
rcx@3924 | 33 DEFAULT_SERIAL_NAME='"/dev/ttyS0"' \ |
rcx@3924 | 34 DEFAULT_USB_NAME='"/dev/usb/legousbtower0"' \ |
rcx@3924 | 35 DEFAULT_PORT_NAME='"usb"' && |
pascal@19292 | 36 make PREFIX=/usr MANDIR=/usr/share/man/man1 install |
rcx@3924 | 37 } |
rcx@3924 | 38 |
rcx@3924 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3924 | 40 genpkg_rules() |
rcx@3924 | 41 { |
rcx@3924 | 42 mkdir -p $fs/usr |
pascal@15584 | 43 cp -a $install/usr/bin $fs/usr |
rcx@3924 | 44 } |