summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Husmann2015-11-20 13:50:25 +0100
committerStefan Husmann2015-11-20 13:50:25 +0100
commitf6823b43e62eb073404551de115ff154401102f1 (patch)
tree4c7ef32fe257c67a6e5c0b1bafaf2dc76b48cfbc
downloadaur-f6823b43e62eb073404551de115ff154401102f1.tar.gz
initial upload
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD43
-rw-r--r--slime.install31
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4ecd5cfc979
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = slime
+ pkgdesc = The Superior Lisp Interaction Mode for Emacs
+ pkgver = 2.15
+ pkgrel = 1
+ url = http://common-lisp.net/project/slime
+ install = slime.install
+ arch = any
+ license = GPL
+ makedepends = texinfo
+ makedepends = texlive-core
+ depends = emacs
+ depends = awk
+ optdepends = awk: for recreating the documentation
+ optdepends = texlive-core: for recreating the documentation
+ provides = slime
+ conflicts = slime
+ source = https://github.com/slime/slime/archive/v2.15.tar.gz
+ md5sums = d7fff5a030cabfc9354f72b92b90c5d0
+
+pkgname = slime
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eb88a6ef123
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Contributor: Johannes Weiner <hannes@saeurebad.de>
+# Contributor: Daniel Leidisch <spam@leidisch.net>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
+pkgname=slime
+pkgver=2.15
+pkgrel=1
+pkgdesc="The Superior Lisp Interaction Mode for Emacs"
+arch=('any')
+url="http://common-lisp.net/project/slime"
+license=('GPL')
+depends=('emacs' 'awk')
+makedepends=('texinfo' 'texlive-core')
+optdepends=('awk: for recreating the documentation'
+ 'texlive-core: for recreating the documentation')
+provides=('slime')
+conflicts=('slime')
+install=slime.install
+source=("https://github.com/slime/slime/archive/v$pkgver.tar.gz")
+md5sums=('d7fff5a030cabfc9354f72b92b90c5d0')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -d $pkgdir/usr/share/emacs/site-lisp/slime
+ cp -r * $pkgdir/usr/share/emacs/site-lisp/slime
+
+ install -d $pkgdir/usr/share/common-lisp/systems
+ ln -s /usr/share/emacs/site-lisp/slime/swank.asd \
+ $pkgdir/usr/share/common-lisp/systems/
+
+ install -D -m644 README.md \
+ $pkgdir/usr/share/licenses/$pkgname/public_domain.txt
+ cd doc
+ make infodir=$pkgdir/usr/share/info install
+ rm $pkgdir/usr/share/info/dir
+ install -Dm644 slime-refcard.pdf \
+ $pkgdir/usr/share/doc/slime/slime-refcard.pdf
+}
diff --git a/slime.install b/slime.install
new file mode 100644
index 00000000000..14b15a7e1f8
--- /dev/null
+++ b/slime.install
@@ -0,0 +1,31 @@
+post_install() {
+ cat << EOF
+
+:: To make use of slime, add the following lines to your
+:: ~/.emacs.el or ~/.emacs:
+
+(setq inferior-lisp-program "/path/to/lisp-executable")
+(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
+(require 'slime)
+(slime-setup)
+
+:: Then run 'M-x slime' from within emacs.
+
+EOF
+echo "Adding Info-File"
+install-info /usr/share/info/slime.info.gz /usr/share/info/dir
+}
+
+post_upgrade() { post_install; }
+
+pre_remove() {
+echo "Removing Info-File"
+install-info --delete /usr/share/info/slime.info.gz /usr/share/info/dir
+}
+
+post_remove() {
+cat << EOF
+ You may want to remove slime related stuff from your ~/.emacs file
+ especially the inferior-lisp-program variable
+EOF
+} \ No newline at end of file