You are not logged in.

#1 2008-11-06 22:05:02

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 337

[Request] NBC/NXC

Could anyone make a PKGBUILD for NBC/NXC (Next Byte Code/Not eXactly C). Website is here.

Orjanp...


Ørjan Pettersen

Offline

#2 2008-11-07 08:04:14

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 955

Re: [Request] NBC/NXC

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

#3 2008-11-10 11:30:12

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 337

Re: [Request] NBC/NXC

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

#4 2008-11-13 14:44:12

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 955

Re: [Request] NBC/NXC

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

#5 2008-11-25 18:07:57

orjanp
Member
From: Tromsoe, Norway
Registered: 2004-07-03
Posts: 337

Re: [Request] NBC/NXC

Thanks. I will test it. smile


Ørjan Pettersen

Offline

#6 2009-01-11 13:59:46

txfx
Member
Registered: 2009-01-11
Posts: 1

Re: [Request] NBC/NXC

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

Board footer

Powered by FluxBB