-
-
Save tomru/2ff611076896e3bca4c3ba4c478f29ba to your computer and use it in GitHub Desktop.
PKGBUILD hyperterm
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 <aabmass@gmail.com> | |
pkgname=hyperterm | |
pkgver=0.7.1 | |
pkgrel=1 | |
epoch= | |
pkgdesc="A terminal emulator built with JS/HTML/CSS on electron" | |
arch=('any') | |
url="https://hyperterm.org/" | |
license=('GPL') | |
groups=() | |
depends=('nodejs' 'electron') | |
makedepends=('npm') | |
checkdepends=() | |
optdepends=() | |
provides=() | |
conflicts=() | |
replaces=() | |
backup=() | |
options=() | |
install= | |
changelog= | |
source=("https://github.com/zeit/$pkgname/archive/v$pkgver.tar.gz") | |
noextract=() | |
md5sums=('f06827cbae82f13237cc20dfd0ee170d') | |
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}" | |
VERSION=`node -e 'process.stdout.write(require("./package").version)'` | |
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