void-packages/srcpkgs/sbcl/template

57 lines
1.6 KiB
Plaintext
Raw Normal View History

2014-08-24 18:45:32 +02:00
# Template file for 'sbcl'
pkgname=sbcl
2015-03-01 15:28:59 +01:00
version=1.2.9
2014-09-06 16:07:22 +02:00
revision=1
2014-11-01 15:40:44 +01:00
hostmakedepends="iana-etc"
makedepends="zlib-devel"
conf_files="/etc/sbclrc"
2014-08-24 18:45:32 +02:00
short_desc="Steel Bank Common Lisp"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://www.sbcl.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.tar.bz2"
2015-03-01 15:28:59 +01:00
checksum=603e15bf15b0fb644362864d3866e96a4c3328d88de1a7da09b26b4b3d089a5f
2014-08-24 18:45:32 +02:00
nocross=yes
case "$XBPS_TARGET_MACHINE" in
2014-11-01 15:40:44 +01:00
x86_64*)
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-x86-64-linux-binary.tar.bz2"
2015-03-01 15:28:59 +01:00
checksum+=" 67753b3f84ad70a1597fa178e32f2dfaa536a6d61f46d15ab2a1477cc7f7d3db"
2014-11-01 15:40:44 +01:00
;;
i686*)
2015-03-01 15:28:59 +01:00
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.2.7-x86-linux-binary.tar.bz2"
checksum+=" 724425fe0d28747c7d31c6655e39fa8c27f9ef4608c482ecc60089bcc85fc31d"
2014-11-01 15:40:44 +01:00
;;
arm*)
2015-03-01 15:28:59 +01:00
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.2.7-armhf-linux-binary.tar.bz2"
checksum+=" 5e75a328882b739befcf5c38e8039b830668a8ca7bafe56a9e13ef23f39eb253"
2014-11-01 15:40:44 +01:00
;;
2014-08-24 18:45:32 +02:00
esac
do_build() {
export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl"
export LINKFLAGS="$LDFLAGS"
bash make.sh \
"bash ../sbcl-*-linux/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
--without-sb-test --with-sb-core-compression --prefix=/usr
make -C doc/manual info
}
do_install() {
SBCL_HOME="" INSTALL_ROOT="$DESTDIR/usr" sh install.sh
vlicense COPYING LICENSE
vconf ${FILESDIR}/sbclrc
}
sbcl-source_package() {
noarch=yes
2014-11-01 15:40:44 +01:00
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" -- source files"
pkg_install() {
cd $wrksrc
./clean.sh
vmkdir usr/lib/sbcl
vcopy src usr/lib/sbcl
2014-11-01 15:40:44 +01:00
}
2014-08-24 18:45:32 +02:00
}