summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79bff0677ebb7ff01f1a7990d5172cc98a931747 (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
# Maintainer: sballert <sballert@posteo.de>
# Contributor: Alex Whitt <alex.joseph.whitt@gmail.com>

pkgname=emacs-neotree
pkgver=0.5.2
pkgrel=1
pkgdesc="A emacs tree plugin like NerdTree for Vim."
arch=(any)
url="https://github.com/jaypei/emacs-neotree"
license=('GPL3')
depends=('emacs')
source=("https://github.com/jaypei/emacs-neotree/archive/${pkgver}.tar.gz")
sha256sums=('22dc07fc170ebb2c69353fcd4680a06824fd42b9cc41f6e6715646cf216ba6fd')

build() {
  cd "${srcdir}/emacs-neotree-${pkgver}"
  emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
}

package() {
  cd "${srcdir}/emacs-neotree-${pkgver}"
  mkdir -p "${pkgdir}/usr/share/emacs/site-lisp/neotree/icons/"
  install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/neotree/"
  install -m644 icons/*.xpm "${pkgdir}/usr/share/emacs/site-lisp/neotree/icons/"
}