aboutsummaryrefslogtreecommitdiffstats
path: root/paredit/PKGBUILD
blob: c5589a2b3bc77e3f56302a00ca1ae8afd85e5cb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
}