summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Abbott2016-07-22 01:42:11 -0400
committerAaron Abbott2016-07-22 01:42:11 -0400
commitae78ab47055f148cda9f95db2ce8e948f4a23a91 (patch)
tree0d58a574bfb068808eb5e1c4fb0ba4a5b11a5932
downloadaur-ae78ab47055f148cda9f95db2ce8e948f4a23a91.tar.gz
First version of hyperterm in
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD82
2 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..547aa6cd3a1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Fri Jul 22 05:41:09 UTC 2016
+pkgbase = hyperterm
+ pkgdesc = A terminal emulator built with JS/HTML/CSS on electron
+ pkgver = 0.6.0
+ pkgrel = 1
+ url = https://hyperterm.org/
+ arch = any
+ license = GPL
+ makedepends = npm
+ depends = nodejs
+ depends = electron
+ source = https://github.com/zeit/hyperterm/archive/0.6.0.tar.gz
+ md5sums = 8e298b3a10494d4e9e7ffd82780f0aab
+
+pkgname = hyperterm
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..479e1f99d16
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,82 @@
+# Maintainer: Aaron Abbott <aabmass@gmail.com>
+pkgname=hyperterm
+pkgver=0.6.0
+pkgrel=1
+epoch=
+pkgdesc="A terminal emulator built with JS/HTML/CSS on electron"
+arch=('any')
+url="https://hyperterm.org/"
+license=('GPL')
+groups=()
+depends=('nodejs' 'electron')
+makedepends=('npm')
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("https://github.com/zeit/$pkgname/archive/$pkgver.tar.gz")
+noextract=()
+md5sums=('8e298b3a10494d4e9e7ffd82780f0aab')
+validpgpkeys=()
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ mkdir -p build
+ ./scripts/install.sh
+ cd app
+ npm install
+}
+
+build() {
+ cd "$pkgname-$pkgver/app"
+
+ npm run build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ npm run lint
+ cd app
+ npm run lint
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ _appdir="/usr/lib/$pkgname"
+ _libinstall="${pkgdir}${_appdir}"
+
+ VERSION=`node -e 'process.stdout.write(require("./package").version)'`
+
+ cp -r app/assets build/
+ cp app/index.html build/
+ cp -r app/dist build/
+ mkdir -p dist
+ ./node_modules/electron-packager/cli.js ./ \
+ --platform=linux \
+ --arch=x64 \
+ --out=dist \
+ --app-version="$VERSION" \
+ --icon=static/icon.png \
+ --prune \
+ --ignore=app/
+
+ mkdir -p "$pkgdir/usr/bin" "$_libinstall"
+ cp -R dist/HyperTerm-linux-x64/* "$_libinstall"
+
+ # link the binary to /usr/bin
+ cd $pkgdir/usr/bin
+ ln -s "../lib/$pkgname/HyperTerm" HyperTerm
+
+ # # TODO: remove included electron libs and use the system ones by symlink
+ # cd "$_libinstall"
+ # rm libnode.so libffmpeg.so
+ # ln -s /usr/share/electron/lib{node,ffmpeg}.so .
+
+}