summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03485460cf7b4243f1ebaefe863ce727b19565fb (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
pkgname=newlogic-git
_pkgname=newlogic
pkgver=0.1.5_beta
_pkgver="0.1.5-beta"
pkgrel=1
pkgdesc="Circuit Builder Desktop Application (like mmlogic)"
arch=('any')
url="https://github.com/ericm/newlogic"
license=('MIT')
source=("${_pkgname}::git+https://github.com/ericm/newlogic.git#tag=v${_pkgver}")
sha256sums=('SKIP')

depends=('nodejs>=10', "electron>=1.8.8")
makedepends=('npm' 'yarn' 'git')
prepare() {
  cd "${_pkgname}"
  yarn
  npm run build
}
package() {
  install -dm755  "$pkgdir"/usr/lib/node_modules/newlogic
  cp -R "$srcdir"/$_pkgname/* "$pkgdir"/usr/lib/node_modules/newlogic
  
  install -dm755 "$pkgdir"/usr/bin
  ln -s /usr/lib/node_modules/newlogic/start.js "$pkgdir"/usr/bin/newlogic
  install -dm755 "$pkgdir"/usr/share/applications
  cp "$srcdir"/$_pkgname/install/newlogic.desktop "$pkgdir"/usr/share/applications
}