summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d220fbcf459f7b355a9021bed1214f03b261f89 (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
28
29
30
31
32
33
34
# Maintainer:  Esben Haabendal <esben@haabendal.dk>

pkgname=emacs-execline-mode-git
_gitproj="elebihan"
_gitrepo="execline-mode"
pkgver=0.2.0
pkgrel=1
pkgdesc="GNU/Emacs major mode for editing execline scripts"
arch=('any')
url="http://github.com/${_gitproj}/${_gitrepo}"
license=('GPL3')
depends=('emacs')
makedepends=('git')
provides=('emacs-execline-mode')
install="${pkgname}.install"
source=("git+https://github.com/${_gitproj}/${_gitrepo}.git")
md5sums=('SKIP')

pkgver() {
  cd "$_gitrepo"
  # Latest annotated tag (release)
  git describe --abbrev=0 --tags | sed 's/^v//'
}

build() {
  cd "$_gitrepo"
  emacs -batch -Q -L . -f batch-byte-compile execline-mode.el
}

package() {
  cd "$_gitrepo"
  mkdir -p ${pkgdir}/usr/share/emacs/site-lisp/execline-mode
  cp *.el* ${pkgdir}/usr/share/emacs/site-lisp/execline-mode
}