summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc4dbb7ccf7ade7079f26e9b7c8a161ebe991f3d (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
39
40
41
42
43
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-ess-git
pkgver=16.04.20.g411d335
pkgrel=1
pkgdesc="Emacs Speaks Statistics: A Universal Interface for \
 Statistical Analysis - git-version"
arch=('any')
url="http://ess.r-project.org"
license=('GPL')
depends=('emacs-julia-mode' 'r')
makedepends=('git')
provides=('ess' 'emacs-ess')
conflicts=('emacs-ess' 'emacs-ess-svn')
options=('docs' '!makeflags')
install=ess.install
source=("emacs-ess::git://github.com/emacs-ess/ESS.git")
md5sums=('SKIP')
_gitname="emacs-ess"

pkgver() {
  cd "$_gitname"
  printf "16.04%s" $(git describe --tags | tr '-' '.' |cut -c7-)
}

prepare() {
  cd "$_gitname/lisp"
  sed -i '67s+julia-mode.el++' Makefile
  cp /usr/share/emacs/site-lisp/julia-mode.el .
  cd ../doc
  sed -i 's+ text html pdf++' Makefile
  sed -i 's+install-other-docs++' Makefile
}

build() {
  cd "$srcdir/$_gitname"
  make prefix=/usr
}

package() {
  cd "$srcdir/$_gitname"
  make DESTDIR=$pkgdir/usr LISPDIR=$pkgdir/usr/share/emacs/site-lisp/ess \
    INFODIR=$pkgdir/usr/share/info/ install 
}