diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 6 insertions, 34 deletions
@@ -1,6 +1,6 @@ # Maintainer: Aaron Abbott <aabmass@gmail.com> pkgname=hyperterm -pkgver=0.6.0 +pkgver=0.7.1 pkgrel=1 epoch= pkgdesc="A terminal emulator built with JS/HTML/CSS on electron" @@ -19,56 +19,29 @@ backup=() options=() install= changelog= -source=("https://github.com/zeit/$pkgname/archive/$pkgver.tar.gz") +source=("https://github.com/zeit/$pkgname/archive/v${pkgver}.tar.gz") noextract=() -md5sums=('8e298b3a10494d4e9e7ffd82780f0aab') +md5sums=('f06827cbae82f13237cc20dfd0ee170d') validpgpkeys=() prepare() { cd "$pkgname-$pkgver" - - mkdir -p build - ./scripts/install.sh - cd app npm install } build() { - cd "$pkgname-$pkgver/app" - - npm run build -} - -check() { cd "$pkgname-$pkgver" - npm run lint - cd app - npm run lint + npm run pack } package() { - cd "$pkgname-$pkgver" + cd "$pkgname-$pkgver" _appdir="/usr/lib/$pkgname" _libinstall="${pkgdir}${_appdir}" - VERSION=`node -e 'process.stdout.write(require("./package").version)'` - - cp -r app/assets build/ - cp app/index.html build/ - cp -r app/dist build/ - mkdir -p dist - ./node_modules/electron-packager/cli.js ./ \ - --platform=linux \ - --arch=x64 \ - --out=dist \ - --app-version="$VERSION" \ - --icon=static/icon.png \ - --prune \ - --ignore=app/ - mkdir -p "$pkgdir/usr/bin" "$_libinstall" - cp -R dist/HyperTerm-linux-x64/* "$_libinstall" + cp -R dist/linux/* "$_libinstall" # link the binary to /usr/bin cd $pkgdir/usr/bin @@ -78,5 +51,4 @@ package() { # cd "$_libinstall" # rm libnode.so libffmpeg.so # ln -s /usr/share/electron/lib{node,ffmpeg}.so . - } |