diff options
author | James Smith | 2019-04-30 19:50:02 -0500 |
---|---|---|
committer | James Smith | 2019-04-30 19:50:02 -0500 |
commit | b4abcdfe474a16089d3253f2559c464a23becc68 (patch) | |
tree | 5bd9773a8c1ffce359ea551f572c9c0257570e25 /PKGBUILD | |
download | aur-b4abcdfe474a16089d3253f2559c464a23becc68.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..33f6e2cccadf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: James Smith <jslonescout AT icloud DOT com> +_pkgname=emacs-libvterm +pkgname=${_pkgname}-git +pkgver=r201.6adcedf +pkgrel=1 +pkgdesc="Emacs libvterm integration" +arch=('i686' 'x86_64' 'armv7h') +url=https://github.com/akermu/${_pkgname} +license=('GPL3') +depends=('emacs') +provides=('emacs-libvterm') +conflicts=('emacs-libvterm') +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 .. + make +} + +package() { + cd "${_pkgname}" + #make DESTDIR="${pkgdir}/" install + # No install target currently, so must install manually + 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 +} |