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

pkgver=0.1.0
pkgrel=4
pkgdesc="Ansible minor mode for Emacs"
pkgname=emacs-ansible
arch=('any')
url="https://github.com/k1LoW/emacs-ansible"
license=('GPL3')
depends=('emacs-s' 'emacs-f' 'emacs-yasnippet' 'ansible')
source=("$pkgname-$pkgver.tar.gz::https://github.com/k1LoW/emacs-ansible/archive/$pkgver.tar.gz")
sha256sums=('0de0cf9d9506b3abf0c27e72eea47282e81abb3d8b7c2808f1ab401456d1aa8f')
install=${pkgname}.install

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

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

  cp -dr --preserve=mode,timestamp snippets "$pkgdir"/usr/share/emacs/site-lisp/
}