summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e46526c70023d72ba8ca716eaf580241cc07726 (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
35
36
37
38
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=emacs-gnuplot-mode-git
pkgver=0.7.0.34.ga406143
pkgrel=1
pkgdesc="Emacs-mode for writing gnuplot scripts"
arch=('any')
url="https://github.com/bruceravel/gnuplot-mode"
license=('GPL2')
makedepends=('git' 'emacs' 'texlive-bin') # latter only for gpelcard.pdf
source=("git+$url.git")
md5sums=('SKIP')
_gitname="gnuplot-mode"

pkgver() {
  cd $_gitname
  git describe --tags | sed 's|-|.|g'
}

build() {
  cd $_gitname
  autoreconf
  ./configure --with-lispdir=/usr/share/emacs/site-lisp \
	      EMACS=emacs # ... or xemacs or sxemacs
  make
  latexmk -pdf gpelcard.tex
}

package() {
  cd $_gitname
  make DESTDIR="$pkgdir/" install
  for _i in .tex .pdf
  do
    install -Dm644 gpelcard${_i} \
	    "$pkgdir"/usr/share/doc/emacs-gnuplot-mode/gpelcard${_i}
  done
  
}