summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Abbott2016-10-10 11:55:56 -0400
committerAaron Abbott2016-10-10 11:55:56 -0400
commit2ea736b596e02c9f516d132d807d2e64d308992a (patch)
tree4a12f7238c0798d34f21466c6a3e8abf5b23cb9c
parent361dcea6b39c0c43b942931d5c52bb5b9fcbf939 (diff)
downloadaur-2ea736b596e02c9f516d132d807d2e64d308992a.tar.gz
Added desktop entry (thanks @auk) and icon
Also fixed bug with hyperterm devs renaming tarball's folders after they made the release...
-rw-r--r--Hyper.desktop8
-rw-r--r--PKGBUILD21
2 files changed, 23 insertions, 6 deletions
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 896c9c52610..b9d269b935b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,9 +4,11 @@
## will rename by AUR mod
# pkgname=hyper
+_pkgname=hyper
+
pkgname=hyperterm
pkgver=0.8.1
-pkgrel=1
+pkgrel=2
epoch=
pkgdesc="A terminal built on web technologies"
arch=('any')
@@ -28,24 +30,28 @@ options=()
install=
changelog=
source=(
- "https://github.com/zeit/$pkgname/archive/${pkgver}.tar.gz"
+ "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')
+md5sums=('bf5575c5bcf8cbedcdf4d7118128c2cd'
+ 'f3481e14cba331160339b3b5ab78872b'
+ '8ccbe8d3e3b6cdc9bc5fd4301d368d5f')
validpgpkeys=()
prepare() {
- cd "$pkgname-$pkgver"
+ cd "$_pkgname-$pkgver"
npm install
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$_pkgname-$pkgver"
npm run pack
}
package() {
- cd "$pkgname-$pkgver"
+ cd "$_pkgname-$pkgver"
_appdir="/usr/lib/$pkgname"
_libinstall="${pkgdir}${_appdir}"
@@ -61,4 +67,7 @@ package() {
# 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"
}