You are not logged in.

#1 2005-07-21 17:32:19

scrawler
Member
Registered: 2005-06-07
Posts: 318

newlisp

howdy guys,

Until I grow a brain, I'm going to pester you guys
with questions.

newlisp has its makefiles seperated into os/distro
specific files. There's a makefile_linux, for
example.  my PKGBUILD fetches and compliles fine,
but just won't install.  I asked the newlisp
designer about adding DESTDIR support, and he said
he would be willing to add a
makefile_arch_package, if I provided it.

Gah.  anyone wanna take a shot at this?  Slowly?

Thanks,

Offline

#2 2005-07-21 18:05:53

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: newlisp

Try this. you'll need to add depends and full url for source.
EDIT: The 'install' on last line should be at the end of previous line.

pkgname=newlisp
pkgver=8.6.0
pkgrel=1
pkgdesc=""
url=""
license=""
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=($pkgname-$pkgver.tgz)
md5sums=()

build() {
  cd $startdir/src/$pkgname-$pkgver
  make linux || return 1
  mkdir -p $startdir/pkg/usr/{bin,man,share}
  mkdir -p $startdir/pkg/usr/man/man1
  make bindir=$startdir/pkg/usr/bin mandir=$startdir/pkg/usr/man datadir=$startdir/pkg/usr/share install
}

Offline

#3 2005-07-21 18:36:16

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: newlisp

Show off.

:-)

Worked like a charm.

here's the PKGBUILD with the rest of the stuff filled in:

pkgname=newlisp
pkgver=8.6.0
pkgrel=1
pkgdesc="newLISP is a general purpose scripting language for developing web applications and programs in general and in the domain of artificial intelligence (AI) and statistics."
url="http://www.newlisp.org"
licence="GPL"
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://newlisp.org/downloads/newlisp-8.6.0.tgz)
md5sums=('b71351f890b1a8a7734dbc03f7aa1973')

build() {
  cd $startdir/src/$pkgname-$pkgver
  make linux || return 1
  mkdir -p $startdir/pkg/usr/{bin,man,share}
  mkdir -p $startdir/pkg/usr/man/man1
  make bindir=$startdir/pkg/usr/bin mandir=$startdir/pkg/usr/man datadir=$startdir/pkg/usr/share install
} 

Offline

#4 2005-07-21 19:06:16

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: newlisp

few comments:
1. add tk and glibc to depends
2. leave licence field empty. It's not implemented yet.
3. Use source=(http://newlisp.org/downloads/$pkgname-$pkgver.tgz) That way it will be easier to upgrade.
4. Maybe add it to AUR http://aur.archlinux.org/

Offline

#5 2005-07-21 19:32:12

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: newlisp

to prevent this from ever happening:
install fakeroot and build packages as a user, so it will fail when it doesn't work properly (like this)

also, run namcap on the package once it's built to check for errors

Offline

Board footer

Powered by FluxBB