summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a3eaf0daf727b23496479c1a06e8945d82db9f2 (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
# Contributor: Alex Whitt <alex.joseph.whitt@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-nim-mode
pkgver=0.4.1
pkgrel=3
pkgdesc="Emacs mode for the nim programming language"
arch=('any')
url="https://github.com/nim-lang/nim-mode"
license=('GPL3')
depends=('emacs-dash' 'emacs-epc' 'emacs-ctable' 'emacs-epl' 'emacs-deferred' 'emacs-company-mode' 'emacs-commander' 'emacs-flycheck')
source=("$pkgname-$pkgver.tar.gz::https://github.com/nim-lang/nim-mode/archive/v$pkgver.tar.gz" Makefile.patch)
sha256sums=('2fb54b05e144f72bc15b7f8bc1112535bf22f6a3b7bfbe6d8a5a2ab7206a5815'
            '20fef5db29d67788dd22cbc9dd97dd2a778a66a0b6f0b80aa9776d08cadb4576')

prepare() {
 cd ${pkgname#emacs-}-$pkgver
 patch -Np1 < "$srcdir"/Makefile.patch
}

build() {
  cd ${pkgname#emacs-}-$pkgver
  make 
}

package() {
  cd ${pkgname#emacs-}-$pkgver
  install -dm755 "$pkgdir"/usr/share/emacs/site-lisp
  cp *.el{,c} "$pkgdir"/usr/share/emacs/site-lisp
}