summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 558d0e02cde5f4a6ad7f9af9e836419969691b7b (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
# Maintainer: amesgen <amesgen AT amesgen DOT de>
# Previous maintainer: James Smith <jslonescout AT icloud DOT com>
_pkgname=emacs-libvterm
pkgname=${_pkgname}-git
pkgver=r369.7d7381f
pkgrel=1
pkgdesc="Emacs libvterm integration"
arch=('i686' 'x86_64' 'armv7h' 'pentium4')
url="https://github.com/akermu/${_pkgname}"
license=('GPL3')
depends=('emacs' 'libvterm')
makedepends=('cmake' 'git' 'libtool')
provides=('emacs-libvterm')
conflicts=('emacs-libvterm')
install=${pkgname}.install
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${_pkgname}"
  mkdir -p build
}

build() {
  cd "${_pkgname}/build"
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DUSE_SYSTEM_LIBVTERM=ON ..
  make
}

package() {
  cd "${_pkgname}"
  #make DESTDIR="${pkgdir}/" install
  # No install target currently, so must install manually
  # Also, vterm-module.so must be in the same directory as vterm.el
  install -Dm644 "vterm-module.so" "${pkgdir}/usr/share/emacs/site-lisp/vterm-module.so"
  install -Dm644 "vterm.el" "${pkgdir}/usr/share/emacs/site-lisp/vterm.el"
}