# SliTaz package receipt. PACKAGE="nqc" VERSION="3.1.r6" PATCHLEVEL="4" CATEGORY="development" SHORT_DESC="Compiler for the Not Quite C programming language." MAINTAINER="rcx@zoominternet.net" LICENSE="MPL" TARBALL="$PACKAGE-$VERSION-$PATCHLEVEL.bz2" WEB_SITE="https://bricxcc.sourceforge.net/nqc/" #WGET_URL="http://bricxcc.sourceforge.net/nqc/release/$TARBALL" WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL" TAGS="compiler language" DEPENDS="glibc-base gcc-lib-base" BUILD_DEPENDS="flex" # What is the latest version available today? current_version() { wget -O - http://bricxcc.sourceforge.net/nqc/release/index.html 2>/dev/null | \ sed '/tgz/!d;s|.*nqc-||;s|.tgz.*||;q' } # Rules to configure and make the package. compile_rules() { ln -s $PACKAGE-$VERSION ../$PACKAGE-$VERSION-$PATCHLEVEL [ -s $TARBALL ] && tar xjf $TARBALL -C .. make -j1 TOOLPREFIX="$TOOLPREFIX" \ DEFAULT_SERIAL_NAME='"/dev/ttyS0"' \ DEFAULT_USB_NAME='"/dev/usb/legousbtower0"' \ DEFAULT_PORT_NAME='"usb"' && make PREFIX=/usr MANDIR=/usr/share/man/man1 install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }