summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76c5442c7f56db936295415c94f08c04d07e506b (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
# Maintainer: Mort Yao <soi@mort.ninja>

pkgname=emacs-whitespace-mode
pkgver=20150609
pkgrel=1
pkgdesc="Major mode for editing Whitespace (an esoteric programming language)."
arch=('any')
url="http://compsoc.dur.ac.uk/whitespace"
license=('GPL')
depends=('emacs')
install=$pkgname.install
source="$url/whitespace-mode.el"
md5sums=('8199a6bd2f6d8a1e619cba6ab7f31ee3')

build() {
  cd $srcdir
  emacs -batch -f batch-byte-compile $srcdir/whitespace-mode.el
}

package() {
  cd $srcdir
  mkdir -p $pkgdir/usr/share/emacs/site-lisp/whitespace-mode
  install -Dm644 whitespace-mode.el whitespace-mode.elc $pkgdir/usr/share/emacs/site-lisp/whitespace-mode
}