Last active
June 15, 2020 12:06
-
-
Save ali/79faaf86eb2d21cf0ff8f8166f155d93 to your computer and use it in GitHub Desktop.
diff for Hyper's PKGBUILD in the AUR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a0495499594e0f49d75ae96a93fbb52efef0becc Mon Sep 17 00:00:00 2001 | |
From: Ali Ukani <[email protected]> | |
Date: Fri, 7 Oct 2016 18:36:30 -0400 | |
Subject: [PATCH] Update to Hyper v0.8.1 | |
--- | |
PKGBUILD | 31 ++++++++++++------------------- | |
autohide-menu.patch | 12 ------------ | |
2 files changed, 12 insertions(+), 31 deletions(-) | |
delete mode 100644 autohide-menu.patch | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 49c69c6..b4aafe6 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,12 +1,12 @@ | |
# Maintainer: Aaron Abbott <[email protected]> | |
# Contributer: fleischie | |
-pkgname=hyperterm | |
-pkgver=0.7.1 | |
-pkgrel=4 | |
+pkgname=hyper | |
+pkgver=0.8.1 | |
+pkgrel=1 | |
epoch= | |
-pkgdesc="A terminal emulator built with JS/HTML/CSS on electron" | |
+pkgdesc="A terminal built on web technologies" | |
arch=('any') | |
-url="https://hyperterm.org/" | |
+url="https://hyper.is/" | |
license=('MIT') | |
groups=() | |
depends=('nodejs' 'electron') | |
@@ -14,33 +14,26 @@ makedepends=('npm' 'python2') | |
checkdepends=() | |
optdepends=() | |
provides=() | |
-conflicts=() | |
-replaces=() | |
+conflicts=('hyperterm') | |
+replaces=('hyperterm') | |
backup=() | |
options=() | |
install= | |
changelog= | |
source=( | |
"https://github.com/zeit/$pkgname/archive/${pkgver}.tar.gz" | |
- "autohide-menu.patch" | |
) | |
noextract=() | |
-md5sums=('f06827cbae82f13237cc20dfd0ee170d' | |
- 'f5ca4b1eed8199186edfed94dd137dbc') | |
+md5sums=('bf5575c5bcf8cbedcdf4d7118128c2cd') | |
validpgpkeys=() | |
prepare() { | |
- cd "$pkgname-$pkgver" | |
- | |
- # this patch temporarily "fixes" https://github.com/zeit/hyperterm/issues/158 | |
- # thanks @fleischie | |
- patch -p1 < ../autohide-menu.patch | |
- | |
+ cd "$pkgname-$pkgver" | |
npm install | |
} | |
build() { | |
- cd "$pkgname-$pkgver" | |
+ cd "$pkgname-$pkgver" | |
npm run pack | |
} | |
@@ -51,11 +44,11 @@ package() { | |
_libinstall="${pkgdir}${_appdir}" | |
mkdir -p "$pkgdir/usr/bin" "$_libinstall" | |
- cp -R dist/linux/* "$_libinstall" | |
+ cp -R dist/linux-unpacked/* "$_libinstall" | |
# link the binary to /usr/bin | |
cd $pkgdir/usr/bin | |
- ln -s "../lib/$pkgname/HyperTerm" HyperTerm | |
+ ln -s "../lib/$pkgname/Hyper" Hyper | |
# # TODO: remove included electron libs and use the system ones by symlink | |
# cd "$_libinstall" | |
diff --git a/autohide-menu.patch b/autohide-menu.patch | |
deleted file mode 100644 | |
index dd48670..0000000 | |
--- a/autohide-menu.patch | |
+++ /dev/null | |
@@ -1,12 +0,0 @@ | |
-diff -aur package.pristine/app/index.js package.new/app/index.js | |
---- package.pristine/app/index.js 2016-07-26 20:35:30.000000000 +0200 | |
-+++ package.new/app/index.js 2016-09-12 15:23:14.737276532 +0200 | |
-@@ -56,7 +56,8 @@ | |
- icon: resolve(__dirname, 'static/icon.png'), | |
- // we only want to show when the prompt | |
- // is ready for user input | |
-- show: process.env.HYPERTERM_DEBUG || isDev | |
-+ show: process.env.HYPERTERM_DEBUG || isDev, | |
-+ autoHideMenuBar: true | |
- }; | |
- const browserOptions = plugins.getDecoratedBrowserOptions(browserDefaults); | |
-- | |
2.9.3 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Aaron Abbott <[email protected]> | |
# Contributer: fleischie | |
pkgname=hyper | |
pkgver=0.8.1 | |
pkgrel=1 | |
epoch= | |
pkgdesc="A terminal built on web technologies" | |
arch=('any') | |
url="https://hyper.is/" | |
license=('MIT') | |
groups=() | |
depends=('nodejs' 'electron') | |
makedepends=('npm' 'python2') | |
checkdepends=() | |
optdepends=() | |
provides=() | |
conflicts=('hyperterm') | |
replaces=('hyperterm') | |
backup=() | |
options=() | |
install= | |
changelog= | |
source=( | |
"https://github.com/zeit/$pkgname/archive/${pkgver}.tar.gz" | |
) | |
noextract=() | |
md5sums=('bf5575c5bcf8cbedcdf4d7118128c2cd') | |
validpgpkeys=() | |
prepare() { | |
cd "$pkgname-$pkgver" | |
npm install | |
} | |
build() { | |
cd "$pkgname-$pkgver" | |
npm run pack | |
} | |
package() { | |
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 . | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 49c69c6..b4aafe6 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,12 +1,12 @@ | |
# Maintainer: Aaron Abbott <[email protected]> | |
# Contributer: fleischie | |
-pkgname=hyperterm | |
-pkgver=0.7.1 | |
-pkgrel=4 | |
+pkgname=hyper | |
+pkgver=0.8.1 | |
+pkgrel=1 | |
epoch= | |
-pkgdesc="A terminal emulator built with JS/HTML/CSS on electron" | |
+pkgdesc="A terminal built on web technologies" | |
arch=('any') | |
-url="https://hyperterm.org/" | |
+url="https://hyper.is/" | |
license=('MIT') | |
groups=() | |
depends=('nodejs' 'electron') | |
@@ -14,33 +14,26 @@ makedepends=('npm' 'python2') | |
checkdepends=() | |
optdepends=() | |
provides=() | |
-conflicts=() | |
-replaces=() | |
+conflicts=('hyperterm') | |
+replaces=('hyperterm') | |
backup=() | |
options=() | |
install= | |
changelog= | |
source=( | |
"https://github.com/zeit/$pkgname/archive/${pkgver}.tar.gz" | |
- "autohide-menu.patch" | |
) | |
noextract=() | |
-md5sums=('f06827cbae82f13237cc20dfd0ee170d' | |
- 'f5ca4b1eed8199186edfed94dd137dbc') | |
+md5sums=('bf5575c5bcf8cbedcdf4d7118128c2cd') | |
validpgpkeys=() | |
prepare() { | |
- cd "$pkgname-$pkgver" | |
- | |
- # this patch temporarily "fixes" https://github.com/zeit/hyperterm/issues/158 | |
- # thanks @fleischie | |
- patch -p1 < ../autohide-menu.patch | |
- | |
+ cd "$pkgname-$pkgver" | |
npm install | |
} | |
build() { | |
- cd "$pkgname-$pkgver" | |
+ cd "$pkgname-$pkgver" | |
npm run pack | |
} | |
@@ -51,11 +44,11 @@ package() { | |
_libinstall="${pkgdir}${_appdir}" | |
mkdir -p "$pkgdir/usr/bin" "$_libinstall" | |
- cp -R dist/linux/* "$_libinstall" | |
+ cp -R dist/linux-unpacked/* "$_libinstall" | |
# link the binary to /usr/bin | |
cd $pkgdir/usr/bin | |
- ln -s "../lib/$pkgname/HyperTerm" HyperTerm | |
+ ln -s "../lib/$pkgname/Hyper" Hyper | |
# # TODO: remove included electron libs and use the system ones by symlink | |
# cd "$_libinstall" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment