wok-6.x view nqc/receipt @ rev 25476

Up foomatic-db-nonfree (20221012)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 13 16:28:13 2022 +0000 (2022-10-13)
parents 370da83187ab
children
line source
1 # SliTaz package receipt.
3 PACKAGE="nqc"
4 VERSION="3.1.r6"
5 PATCHLEVEL="4"
6 CATEGORY="development"
7 SHORT_DESC="Compiler for the Not Quite C programming language."
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="MPL"
10 TARBALL="$PACKAGE-$VERSION-$PATCHLEVEL.bz2"
11 WEB_SITE="https://bricxcc.sourceforge.net/nqc/"
12 #WGET_URL="http://bricxcc.sourceforge.net/nqc/release/$TARBALL"
13 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL"
14 TAGS="compiler language"
16 DEPENDS="glibc-base gcc-lib-base"
17 BUILD_DEPENDS="flex"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - http://bricxcc.sourceforge.net/nqc/release/index.html 2>/dev/null | \
23 sed '/tgz/!d;s|.*nqc-||;s|.tgz.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ln -s $PACKAGE-$VERSION ../$PACKAGE-$VERSION-$PATCHLEVEL
30 [ -s $TARBALL ] && tar xjf $TARBALL -C ..
31 make -j1 TOOLPREFIX="$TOOLPREFIX" \
32 DEFAULT_SERIAL_NAME='"/dev/ttyS0"' \
33 DEFAULT_USB_NAME='"/dev/usb/legousbtower0"' \
34 DEFAULT_PORT_NAME='"usb"' &&
35 make PREFIX=/usr MANDIR=/usr/share/man/man1 install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/usr/bin $fs/usr
43 }