void-packages/srcpkgs/newlisp/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

30 lines
919 B
Bash

# Template file for 'newlisp'
pkgname=newlisp
version=10.6.2
revision=1
makedepends="readline-devel libffi-devel"
short_desc="Lisp-like, general-purpose scripting language"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3, zlib, $pkgname"
homepage="http://www.newlisp.org"
distfiles="$homepage/downloads/$pkgname-$version.tgz"
checksum=ae3ab77987cb2cfef4e986104be5be5ac9469317e9d74884c3ea89c2e4bb4040
do_build() {
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
export CFLAGS+=" -DNEWLISP64"
fi
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
}