summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Abbott2016-10-10 12:33:06 -0400
committerAaron Abbott2016-10-10 12:33:06 -0400
commitfd52396c44954a9feecad1f3ebcc4f994a77ec9b (patch)
tree71d84909085ed17413020875549d36bc49d825d1
parentc5d3496a0af5f8c15e294bc3f13839bdd01b710a (diff)
downloadaur-fd52396c44954a9feecad1f3ebcc4f994a77ec9b.tar.gz
Trying to get rid of old changes
See https://bbs.archlinux.org/viewtopic.php?pid=1659490
-rw-r--r--.SRCINFO32
-rw-r--r--Hyper.desktop8
-rw-r--r--PKGBUILD82
3 files changed, 92 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index baa3856ca32..b184c16835f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,22 @@
-# Generated by makepkg 4.2.1
-# Tue Jan 26 12:18:37 UTC 2016
-pkgbase = hyper
- pkgdesc = A Lightweight Web Browser
- pkgver = 0.1.1
- pkgrel = 1
- url = https://github.com/AxelMarchand/Hyper
+# Generated by mksrcinfo v8
+# Mon Oct 10 15:59:40 UTC 2016
+pkgbase = hyperterm
+ pkgdesc = A terminal built on web technologies
+ pkgver = 0.8.1
+ pkgrel = 2
+ url = https://hyper.is/
arch = any
license = MIT
- makedepends = make
- makedepends = gcc
- makedepends = pkg-config
- depends = webkitgtk
- source = https://github.com/AxelMarchand/Hyper/releases/download/v0.1.1/hyper-0.1.1.tar.gz
- md5sums = 057970f90e9650f36faccc17e5f2061c
+ makedepends = npm
+ makedepends = python2
+ depends = nodejs
+ depends = electron
+ source = https://github.com/zeit/hyper/archive/0.8.1.tar.gz
+ source = https://raw.githubusercontent.com/zeit/art/master/hyper/mark/Hyper-Mark-120%403x.png
+ source = Hyper.desktop
+ md5sums = bf5575c5bcf8cbedcdf4d7118128c2cd
+ md5sums = f3481e14cba331160339b3b5ab78872b
+ md5sums = 8ccbe8d3e3b6cdc9bc5fd4301d368d5f
-pkgname = hyper
+pkgname = hyperterm
diff --git a/Hyper.desktop b/Hyper.desktop
new file mode 100644
index 00000000000..756971a110c
--- /dev/null
+++ b/Hyper.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Hyper
+Comment=JS/HTML/CSS Terminal
+Exec=Hyper
+Icon=/usr/share/pixmaps/hyper.png
+Terminal=false
+Type=Application
+Categories=Development;
diff --git a/PKGBUILD b/PKGBUILD
index e38e0b18c16..b9d269b935b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,73 @@
-pkgname=hyper
-pkgver=0.1.1
-pkgrel=1
-pkgdesc="A Lightweight Web Browser"
-arch=(any)
-url="https://github.com/AxelMarchand/Hyper"
+# Maintainer: Aaron Abbott <aabmass@gmail.com>
+# Contributer: fleischie
+# Contributer: auk
+
+## will rename by AUR mod
+# pkgname=hyper
+_pkgname=hyper
+
+pkgname=hyperterm
+pkgver=0.8.1
+pkgrel=2
+epoch=
+pkgdesc="A terminal built on web technologies"
+arch=('any')
+url="https://hyper.is/"
license=('MIT')
-depends=('webkitgtk')
-makedepends=('make' 'gcc' 'pkg-config')
-source=('https://github.com/AxelMarchand/Hyper/releases/download/v0.1.1/hyper-0.1.1.tar.gz')
-md5sums=('057970f90e9650f36faccc17e5f2061c')
+groups=()
+depends=('nodejs' 'electron')
+makedepends=('npm' 'python2')
+checkdepends=()
+optdepends=()
+provides=()
-build() {
- cd $srcdir/$pkgname-$pkgver
+## will uncomment these when an AUR mod renames this package. I can't push this
+## with the new name. Have to have it done manually.
+# conflicts=('hyperterm')
+# replaces=('hyperterm')
+backup=()
+options=()
+install=
+changelog=
+source=(
+ "https://github.com/zeit/$_pkgname/archive/${pkgver}.tar.gz"
+ "https://raw.githubusercontent.com/zeit/art/master/hyper/mark/Hyper-Mark-120%403x.png"
+ "Hyper.desktop"
+)
+noextract=()
+md5sums=('bf5575c5bcf8cbedcdf4d7118128c2cd'
+ 'f3481e14cba331160339b3b5ab78872b'
+ '8ccbe8d3e3b6cdc9bc5fd4301d368d5f')
+validpgpkeys=()
- make || return 1
- make clean
+prepare() {
+ cd "$_pkgname-$pkgver"
+ npm install
+}
+
+build() {
+ cd "$_pkgname-$pkgver"
+ npm run pack
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make install || return 1
+ cd "$_pkgname-$pkgver"
+
+ _appdir="/usr/lib/$pkgname"
+ _libinstall="${pkgdir}${_appdir}"
+
+ mkdir -p "$pkgdir/usr/bin" "$_libinstall"
+ cp -R dist/linux-unpacked/* "$_libinstall"
+
+ # link the binary to /usr/bin
+ cd $pkgdir/usr/bin
+ ln -s "../lib/$pkgname/Hyper" Hyper
+
+ # # 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 .
+
+ install -Dm644 "$srcdir/Hyper.desktop" "$pkgdir/usr/share/applications/Hyper.desktop"
+ install -Dm644 "$srcdir/Hyper-Mark-120%403x.png" "$pkgdir/usr/share/pixmaps/hyper.png"
}