summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b3e8e90225a9f8e46f762f1883b3a7f8c0b67d7 (plain)
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
# Maintainer: Jon Eyolfson <jon@eyl.io>
# Contributor: listx <linusarver <at> gmail <dot> com>
pkgname=emacs-undo-tree
pkgver=0.8.1
pkgrel=1
pkgdesc="Replace Emacs' undo system with an intuitive tree-based system."
arch=('any')
url="https://www.dr-qubit.org/undo-tree.html"
depends=('emacs' 'emacs-queue')
makedepends=('git')
license=('GPL')
provides=('emacs-undo-tree')
conflicts=('emacs-undo-tree')
install=$pkgname.install
source=("$pkgname"::"git+https://gitlab.com/tsc25/undo-tree#tag=release/$pkgver")
sha256sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}"
  emacs -batch -f batch-byte-compile undo-tree.el
}

package() {
  cd "${srcdir}/${pkgname}"
  install -d $pkgdir/usr/share/emacs/site-lisp/undo-tree
  install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/undo-tree"
}