Skip to content

Instantly share code, notes, and snippets.

@fleischie
Last active September 12, 2016 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fleischie/00a9789c77a336bb4bb3b1f7b5284260 to your computer and use it in GitHub Desktop.
Save fleischie/00a9789c77a336bb4bb3b1f7b5284260 to your computer and use it in GitHub Desktop.
Diff for hyperterm's PKGBUILD for the Arch User Repository.
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);
#5b81b2ce2e3bed609692c Maintainer: Aaron Abbott <aabmass@gmail.com>
pkgname=hyperterm
pkgver=0.7.1
pkgrel=3
epoch=
pkgdesc="A terminal emulator built with JS/HTML/CSS on electron"
arch=('any')
url="https://hyperterm.org/"
license=('MIT')
groups=()
depends=('nodejs' 'electron')
makedepends=('npm' 'python2')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/zeit/$pkgname/archive/${pkgver}.zip"
"hyperterm.patch")
noextract=()
md5sums=('274b975db1a5b81b2ce2e3bed609692c'
'0c2b7452bc7de612c289f94b29880bdb')
validpgpkeys=()
prepare() {
cd "$pkgname-$pkgver"
patch -p1 < ../hyperterm.patch
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/* "$_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 .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment