You are not logged in.
Could anyone make a PKGBUILD for NBC/NXC (Next Byte Code/Not eXactly C). Website is here.
Orjanp...
Ørjan Pettersen
Offline
This is written in pascal (Delphi to be exact). There are no instructions how to build it on the webpage or in the tarball. Maybe it is possible using Free Pascal (fpc in community) but I have no experiences in doing so.
Online
I didn't know that. Could the link below be of any assistance?
http://www.jclarsen.dk/index.php/guides … c-on-linux
But there is already a executable of the NBC compiler. So I just use it.
Last edited by orjanp (2008-11-10 17:42:20)
Ørjan Pettersen
Offline
Well, that helps a little. But it is still lacking a "make install" step. Maybe this works:
pkgname=nxc
pkgver=1.0.1.b34
pkgrel=1
pkgdesc="Not eXactly C -- to program LEGO's NXT programmable brick"
url="http://bricxcc.sourceforge.net/nbc"
arch=('i686' 'x86_64')
license=('GPL')
makedepends=('fpc')
source=(http://downloads.sourceforge.net/bricxcc/nbc-$pkgver.src.tgz)
md5sums=('0886e4f420fe1e6b23e4ec5a92dc9a9f')
noextract=("nbc-$pkgver.src.tgz")
build() {
cd $srcdir
install -d nbc
tar xzf nbc-1.0.1.b34.src.tgz -C nbc
cd nbc/nxt
[[ $CARCH = x86_64 ]] && sed -i 's/ppc386/ppcx64/' nbclinux.mak || return 1
make -f nbclinux.mak || return 1
install -D -m755 nbc $pkgdir/usr/bin/nbc || return 1
}Last edited by Stefan Husmann (2008-11-13 14:45:55)
Online
Thanks. I will test it. ![]()
Ørjan Pettersen
Offline
hi, i've posted a PKGBUILD in aur http://aur.archlinux.org/packages.php?ID=22870. Can you test it ?
The download command should work (try as root 'nbc -S=usb -d bools.nbc').
Offline