diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -1,20 +1,27 @@ # Maintainer: Olivier Galibert <galibert@pobox.com> # Contributor: Philip Mueller <mail at philip.in-aachen dot net> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> + pkgname=emacs-yaml-mode pkgver=0.0.13 -pkgrel=1 +pkgrel=2 pkgdesc="Emacs major mode for editing files in the YAML data serialization format" arch=('any') url="https://github.com/yoshiki/yaml-mode" license=('GPL') -groups=() depends=('emacs') install=emacs-yaml-mode.install -source=(https://github.com/yoshiki/yaml-mode/archive/v$pkgver.tar.gz) +source=("$pkgname-$pkgver.taz.gz::https://github.com/yoshiki/${pkgname#emacs-}/archive/v$pkgver.tar.gz") md5sums=('22a94319ba03a94578dfdfae11f8b5ae') +build() { + cd ${pkgname#emacs-}-$pkgver + emacs -batch -q -f batch-byte-compile ${pkgname#emacs-}.el +} + package() { - cd $srcdir/yaml-mode-$pkgver + cd ${pkgname#emacs-}-$pkgver # Install the mode for Emacs - install -D -m644 yaml-mode.el $pkgdir/usr/share/emacs/site-lisp/yaml-mode.el + install -D -m644 ${pkgname#emacs-}.el $pkgdir/usr/share/emacs/site-lisp/${pkgname#emacs-}.el + install -D -m644 ${pkgname#emacs-}.elc $pkgdir/usr/share/emacs/site-lisp/${pkgname#emacs-}.elc } |