summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD38
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8dc6e194d73
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = emacs-libvterm-git
+ pkgdesc = Emacs libvterm integration
+ pkgver = r201.6adcedf
+ pkgrel = 1
+ url = https://github.com/akermu/emacs-libvterm
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ license = GPL3
+ depends = emacs
+ provides = emacs-libvterm
+ conflicts = emacs-libvterm
+ source = git+https://github.com/akermu/emacs-libvterm.git
+ sha256sums = SKIP
+
+pkgname = emacs-libvterm-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..33f6e2cccad
--- /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
+}