summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 055624b760906fda11b187cd658908dff52665aa (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.2.0
pkgrel=1
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=('b3fe614eef5b22755cdf9b543fa0a197038ab307ef748ccc2295b98713470af1')
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/
}