Created
February 1, 2022 12:56
-
-
Save dvush/4592874e3c03935e839e74e6a57e3889 to your computer and use it in GitHub Desktop.
Archinux PKGBUILD for sbcl 2.2.1(patch and full PKGBUILD)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c25d620ba5e20bb6068efe937e1c621fd4f23725 Mon Sep 17 00:00:00 2001 | |
From: Vitaly Drogan <vitaliy.drogan@gmail.com> | |
Date: Tue, 1 Feb 2022 14:53:44 +0200 | |
Subject: [PATCH] 2.2.1 | |
--- | |
PKGBUILD | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/PKGBUILD b/PKGBUILD | |
index e7627f8..8113bcb 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -4,7 +4,7 @@ | |
# Contributor: Leslie Polzer (skypher) | |
pkgname=sbcl | |
-pkgver=2.1.11 | |
+pkgver=2.2.1 | |
pkgrel=1 | |
pkgdesc="Steel Bank Common Lisp" | |
url="http://www.sbcl.org/" | |
@@ -15,7 +15,7 @@ provides=('common-lisp' 'cl-asdf') | |
makedepends=('sbcl') | |
source=("https://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" | |
"arch-fixes.lisp") | |
-sha256sums=('bfc1481de7fdbdfaeef2ab0f0e8e84efd343433dea8d21cfbea8b0146cbdfefd' | |
+sha256sums=('5dd6e6e3f08b7c6edf262a0e844a9f8b5e562cca08155034c1f2c014fc9087da' | |
'b5a6468dcbc1012cae2c3cda155762a37b6d96ef89bba4f723315063b0b5e7ce') | |
@@ -28,7 +28,7 @@ build() { | |
export LINKFLAGS="$LDFLAGS" | |
unset LDFLAGS | |
unset MAKEFLAGS | |
- sh make.sh sbcl --prefix=/usr --fancy | |
+ sh make.sh --prefix=/usr --fancy | |
make -C doc/manual info | |
} | |
-- | |
2.35.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: John Proctor <jproctor@prium.net> | |
# Contributor: Daniel White <daniel@whitehouse.id.au> | |
# Maintainer: Juergen Hoetzel <juergen@archlinux.org> | |
# Contributor: Leslie Polzer (skypher) | |
pkgname=sbcl | |
pkgver=2.2.1 | |
pkgrel=1 | |
pkgdesc="Steel Bank Common Lisp" | |
url="http://www.sbcl.org/" | |
arch=('x86_64') | |
license=('custom') | |
depends=('zlib') | |
provides=('common-lisp' 'cl-asdf') | |
makedepends=('sbcl') | |
source=("https://downloads.sourceforge.net/project/sbcl/sbcl/$pkgver/$pkgname-$pkgver-source.tar.bz2" | |
"arch-fixes.lisp") | |
sha256sums=('5dd6e6e3f08b7c6edf262a0e844a9f8b5e562cca08155034c1f2c014fc9087da' | |
'b5a6468dcbc1012cae2c3cda155762a37b6d96ef89bba4f723315063b0b5e7ce') | |
build() { | |
cd "$srcdir/$pkgname-$pkgver" | |
export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl" | |
export GNUMAKE="make" | |
# build system uses LINKFLAGS and OS_LIBS to build LDFLAGS | |
export LINKFLAGS="$LDFLAGS" | |
unset LDFLAGS | |
unset MAKEFLAGS | |
sh make.sh --prefix=/usr --fancy | |
make -C doc/manual info | |
} | |
package() { | |
cd "$srcdir/$pkgname-$pkgver" | |
# cannot have both SBCL_HOME and INSTALL_ROOT | |
SBCL_HOME="" INSTALL_ROOT="$pkgdir/usr" sh install.sh | |
src/runtime/sbcl --core output/sbcl.core --script "${srcdir}/arch-fixes.lisp" | |
mv sbcl-new.core "${pkgdir}/usr/lib/sbcl/sbcl.core" | |
# sources | |
mkdir -p "$pkgdir/usr/share/sbcl-source" | |
cp -R -t "$pkgdir/usr/share/sbcl-source" "$srcdir/$pkgname-$pkgver/"{src,contrib} | |
# license | |
install -D -m644 "$srcdir/$pkgname-$pkgver/COPYING" \ | |
"$pkgdir/usr/share/licenses/$pkgname/license.txt" | |
# drop unwanted files | |
find "$pkgdir" \( -name Makefile -o -name .cvsignore \) -delete | |
find "$pkgdir/usr/share/sbcl-source" -type f \ | |
\( -name \*.fasl -o -name \*.o -o -name \*.log -o -name \*.so -o -name a.out \) -delete | |
rm "$pkgdir/usr/share/sbcl-source/src/runtime/sbcl" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment