diff options
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | Hyper.desktop | 8 | ||||
-rw-r--r-- | PKGBUILD | 82 |
3 files changed, 92 insertions, 30 deletions
@@ -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 000000000000..756971a110cc --- /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; @@ -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" } |