Package Details: nqc 3.1.r6-1

Git Clone URL: https://aur.archlinux.org/nqc.git (read-only)
Package Base: nqc
Description: Not Quite C is a simple language with a C-like syntax that can be used to program Lego's RCX programmable brick (from the Mindstorms set).
Upstream URL: http://bricxcc.sourceforge.net/nqc/
Keywords: LEGO NQC RCX
Licenses: custom:MPL
Submitter: Lefl
Maintainer: Lefl
Last Packager: Lefl
Votes: 0
Popularity: 0.000000
First Submitted: 2015-11-23 15:19
Last Updated: 2015-11-23 15:27

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

kredyo commented on 2015-12-22 22:31

pkgname=nqc
pkgver=3.1.r6
pkgrel=1
pkgdesc="Not Quite C is a simple language with a C-like syntax that can be used to program Lego's RCX programmable brick (from the Mindstorms set)."
arch=("i686" "x86_64")
url="http://bricxcc.sourceforge.net/nqc/"
license=("custom:MPL")
dependends=("gcc" "glibc")
source=(
"http://bricxcc.sourceforge.net/nqc/release/nqc-3.1.r6.tgz"
"http://sourceforge.net/p/bricxcc/patches/_discuss/thread/00b427dc/b84b/attachment/nqc-01-Linux_usb_and_tcp.diff")
noextract=(
"nqc-3.1.r6.tgz"
"nqc-01-Linux_usb_and_tcp.diff")
sha1sums=(
"1de6543cc5152f6dacf375aea2974c09e5fe0ffa"
"750ef0d8fd0b7dc5c1183f3347b98ecb8dcbf120")

prepare() {
cd ${srcdir}
mkdir nqc-3.1.r6
cd nqc-3.1.r6
tar -xzf ../nqc-3.1.r6.tgz
cd ..
patch -p0 < nqc-01-Linux_usb_and_tcp.diff
echo "#include <unistd.h>" | cat - "$srcdir/nqc-3.1.r6/compiler/lexer.cpp" > temp && mv temp "$srcdir/nqc-3.1.r6/compiler/lexer.cpp"
}

build() {
cd ${srcdir}/nqc-3.1.r6
make
}

package() {
cd ${srcdir}/nqc-3.1.r6
PREFIX=${pkgdir}/usr make install
chmod -R go+rX ${pkgdir}/usr
}