# $Id: PKGBUILD 129774 2015-03-23 03:30:44Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=emacs-pkgbuild-mode
pkgver=0.13
pkgrel=1
pkgdesc="A major mode for creating packages with emacs"
arch=('any')
url="http://github.com/juergenhoetzel/pkgbuild-mode"
license=('GPL')
depends=('emacs')
install=emacs-pkgbuild-mode.install
source=($pkgname-$pkgver.tar.gz::https://github.com/juergenhoetzel/pkgbuild-mode/tarball/${pkgver})
sha1sums=('3e11580ddba23b63ff4e7faaeaf8c08d2a2950b1')

package() {
  cd juergenhoetzel-pkgbuild-mode-*
  emacs -batch -f batch-byte-compile pkgbuild-mode.el
  install -d "${pkgdir}/usr/share/emacs/site-lisp"
  install -D -m644 pkgbuild-mode.el pkgbuild-mode.elc "${pkgdir}/usr/share/emacs/site-lisp"
}
