void-packages/srcpkgs/newlisp/template
2017-01-31 11:16:56 +00:00

31 lines
920 B
Bash

# Template file for 'newlisp'
pkgname=newlisp
version=10.7.1
revision=1
makedepends="readline-devel libffi-devel"
short_desc="Lisp-like, general-purpose scripting language"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3, zlib, $pkgname"
homepage="http://www.newlisp.org"
distfiles="$homepage/downloads/$pkgname-$version.tgz"
checksum=2e300c8bed365a564d284bf3ad6c49e036256e7fc3f469ebda0b45e6e196a7cc
do_build() {
case "$XBPS_TARGET_MACHINE" in
x86_64*) export CFLAGS+=" -DNEWLISP64";;
esac
make -f makefile_linuxLP64_utf8_ffi ${makejobs}
}
do_install() {
vmkdir usr/bin
vmkdir usr/share/man/man1
vmkdir usr/share/licenses/$pkgname
make bindir=$DESTDIR/usr/bin datadir=$DESTDIR/usr/share \
mandir=$DESTDIR/usr/share/man install
mv $DESTDIR/usr/share/doc/$pkgname/COPYING \
$DESTDIR/usr/share/licenses/$pkgname
# Create newlisp symlink;
ln -sf newlisp-${version} ${DESTDIR}/usr/bin/newlisp
}