summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37127824c07c111d565097aee9d0dd2efff683d4 (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
28
29
30
# Maintainer: Daichi Shinozaki <dsdseg@gmail.com>
pkgname=('emacs-rebol-mode')
url="http://www.rebol.com/tools/rebol.el"
license=('custom')
pkgrel=1
pkgver=1.0
pkgdesc="A major mode for editing Rebol programs"
install=$pkgname.install
depends=('emacs')
makedepends=('emacs' 'wget')
arch=('any')

build() {
  cd "$srcdir"

  #
  # BUILD HERE
  #
  if [ ! -f $(basename $url) ]; then
    wget $url
  fi
  emacs -batch -f batch-byte-compile rebol.el
}

package() {
  install -Dm644 rebol.el "$pkgdir/usr/share/emacs/site-lisp/rebol.el"
  install -Dm644 rebol.elc "$pkgdir/usr/share/emacs/site-lisp/rebol.elc"  
}

# vim:set ts=2 sw=2 et: