From f269adfb93295f3e14678a6bb93a5c19263e4884 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 5 Mar 2013 09:54:29 +0100 Subject: adopt paredit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- paredit/PKGBUILD | 31 +++++++++++++++++++++++++++++++ paredit/watch | 21 +++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 paredit/PKGBUILD create mode 100755 paredit/watch diff --git a/paredit/PKGBUILD b/paredit/PKGBUILD new file mode 100644 index 0000000..c5589a2 --- /dev/null +++ b/paredit/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +pkgname=paredit +pkgver=23 +pkgrel=1 +pkgdesc="Emacs minor mode for pseudo-structurally editing Lisp code" +arch=('any') +url="http://www.emacswiki.org/emacs/ParEdit" +license=('GPL') +makedepends=('emacs') +install=paredit.install +changelog=ChangeLog +# XXX: a stable url to version 23 is not available +# XXX: this is the "current" release, which happens to be 23 +source=("http://mumble.net/~campbell/emacs/$pkgname-beta.el") +md5sums=('dcb8caf2f2204846a8a3c59756520c24') + +build() { + cd "$srcdir" + # XXX: should be using paredit-$pkgver here + emacs -Q -batch -f batch-byte-compile paredit-beta.el +} + +package() { + cd "$srcdir" + + # XXX: should be using paredit-$pkgver + install -D -m644 paredit-beta.elc \ + "$pkgdir/usr/share/emacs/site-lisp/paredit.elc" || return 1 + install -D -m644 paredit-beta.el \ + "$pkgdir/usr/share/emacs/site-lisp/paredit.el" || return 1 +} diff --git a/paredit/watch b/paredit/watch new file mode 100755 index 0000000..2cc78e0 --- /dev/null +++ b/paredit/watch @@ -0,0 +1,21 @@ +#!/bin/sh + +[ -f paredit.release ] && rm paredit.release + +wget 'http://mumble.net/~campbell/emacs/paredit.release' -O paredit.release >/dev/null 2>/dev/null + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum paredit.release > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'paredit' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'paredit (unfetchable)' +fi + -- cgit v1.2.3-70-g09d2