You are not logged in.
Pages: 1
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
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
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
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
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
Pages: 1