62 lines
1.9 KiB
Bash
62 lines
1.9 KiB
Bash
# Template file for 'sbcl'
|
|
pkgname=sbcl
|
|
version=1.3.6
|
|
revision=1
|
|
only_for_archs="i686 x86_64 armv7l aarch64"
|
|
hostmakedepends="iana-etc"
|
|
makedepends="zlib-devel"
|
|
conf_files="/etc/sbclrc"
|
|
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"
|
|
checksum=f017ac1bd8fe0ad56a4cfda4f7543a06a8993db8da1c9c079e188c28c551b0d9
|
|
nocross=yes
|
|
nopie=yes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*)
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-x86-64-linux-binary.tar.bz2"
|
|
checksum+=" 2f0c9e5ab2c6b7d669df03ca6eea0c7abd5e01fb26bfde0bfe91fac9a40099e3"
|
|
;;
|
|
i686*)
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.2.7-x86-linux-binary.tar.bz2"
|
|
checksum+=" 724425fe0d28747c7d31c6655e39fa8c27f9ef4608c482ecc60089bcc85fc31d"
|
|
;;
|
|
arm*)
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.2.7-armhf-linux-binary.tar.bz2"
|
|
checksum+=" 5e75a328882b739befcf5c38e8039b830668a8ca7bafe56a9e13ef23f39eb253"
|
|
;;
|
|
aarch64*)
|
|
distfiles+=" ${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-1.3.6-arm64-linux-binary.tar.bz2"
|
|
checksum+=" f8920b461a34ac9687ffdd497dce0f7311021e9325d56121d025a2e651172739"
|
|
;;
|
|
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
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" -- source files"
|
|
pkg_install() {
|
|
cd $wrksrc
|
|
./clean.sh
|
|
vmkdir usr/lib/sbcl
|
|
vcopy src usr/lib/sbcl
|
|
}
|
|
}
|