summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3582699dfea69786e98bf86aa11b2c1036efa09 (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
# Maintainer: gitpocalypse <joepfeiffer16@gmail.com>

pkgname=scene-git
pkgver="0.1.4"
pkgrel=2
pkgdesc="An Urbit ship interface from Tirrel"
arch=('x86_64')
url="https://github.com/tirrel-corp/scene"
license=('LGPL')
makedepends=('git' 'nodejs' 'yarn' 'jq')
provides=('scene')
conflicts=("${pkgname}")
source=("${pkgname}::git+${url}.git")
b2sums=('SKIP')

pkgver() {
    cd "${pkgname}"
    cat package.json | jq .version
}

build() {
  cd "${pkgname}"
  yarn install
  npm run electron:package:linux
}

package() {
  cd "${pkgname}/dist"
  mkdir -p $pkgdir/usr/bin
  mkdir -p $pkgdir/opt/scene
  cp -r ./linux-unpacked/* $pkgdir/opt/scene/
  ln -s /opt/scene/scene $pkgdir/usr/bin/scene
}