66 lines
2 KiB
Bash
66 lines
2 KiB
Bash
# Template file for 'sbcl'
|
|
pkgname=sbcl
|
|
version=2.1.6
|
|
revision=1
|
|
archs="i686 x86_64* armv7l aarch64 ppc64le*"
|
|
hostmakedepends="iana-etc"
|
|
makedepends="zlib-devel"
|
|
conf_files="/etc/sbclrc"
|
|
short_desc="Steel Bank Common Lisp"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="custom:BSD+public_domain"
|
|
homepage="http://www.sbcl.org/"
|
|
changelog="http://www.sbcl.org/news.html"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-source.tar.bz2"
|
|
checksum=8b210c5dd20a466ca438bc7f628812640d0b4acdfad20bec168a6a5dabc1cdef
|
|
nocross=yes
|
|
nopie=yes
|
|
|
|
_bootstrap_lisp="bash ../sbcl-*-linux/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64)
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-x86-64-linux-binary.tar.bz2"
|
|
checksum+=" d120765fe5148de7cec23f0b20d9bbf92b03d7f4429d1754a95898c43323e367"
|
|
;;
|
|
i686)
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.4.3-x86-linux-binary.tar.bz2"
|
|
checksum+=" 6bed7e31bb28e841da7bfc48c75adb8bef19e5e07d1d6f0fc7487f022c32f92c"
|
|
;;
|
|
arm*)
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.2.14-armhf-linux-binary.tar.bz2"
|
|
checksum+=" a5fbf1d596a909a7719bc4a958f00e8537bf399fa051f83736baee950b21e56a"
|
|
;;
|
|
aarch64)
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.3.9-arm64-linux-binary.tar.bz2"
|
|
checksum+=" 494829f8e3ea7eb1c308b343cc390daf94a6215030a5f2b9ee0cded67511e918"
|
|
;;
|
|
ppc*|*-musl)
|
|
makedepends+=" ecl"
|
|
_bootstrap_lisp="ecl"
|
|
;;
|
|
esac
|
|
|
|
do_build() {
|
|
export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl"
|
|
export LINKFLAGS="$LDFLAGS"
|
|
bash make.sh \
|
|
"$_bootstrap_lisp" \
|
|
--without-sb-test --with-sb-core-compression --prefix=/usr
|
|
}
|
|
|
|
do_install() {
|
|
SBCL_HOME="" INSTALL_ROOT="$DESTDIR/usr" sh install.sh
|
|
vlicense COPYING LICENSE
|
|
vconf ${FILESDIR}/sbclrc
|
|
}
|
|
|
|
sbcl-source_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" -- source files"
|
|
pkg_install() {
|
|
cd $wrksrc
|
|
./clean.sh
|
|
vmkdir usr/lib/sbcl
|
|
vcopy src usr/lib/sbcl
|
|
}
|
|
}
|