summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ef7265c2db2d3bd4c9f26610dfe495f223a671e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Solomon Choina <shlomochoina@gmail.com>
pkgname=terminus-terminal
_pkgname=terminus
pkgver=1.0.102
pkgrel=1
pkgdesc="A terminal for a more modern age"
arch=('x86_64')
url="https://eugeny.github.io/terminus/"
license=('MIT')
depends=('nodejs' 'fontconfig')
makedepends=('git' 'npm' 'yarn' 'python2')
source=("git+https://github.com/Eugeny/terminus.git#tag=v${pkgver}")
sha256sums=('SKIP')

build(){
  cd "$srcdir/$_pkgname/"
  yarn install
  ./scripts/install-deps.js
  yarn run build
  ./scripts/build-native.js
  ./node_modules/.bin/electron-builder --linux deb
}

package() {
  cd "$srcdir/$_pkgname/dist/"
  ar x *.deb
  tar -xf data.tar.xz
  cp -r usr/ $pkgdir
  cp -r opt/ $pkgdir

 install -Dm755 /dev/stdin "$pkgdir"/usr/bin/$_pkgname <<END
  #!/usr/bin/bash
  /opt/Terminus/terminus

END

}