summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7aa5a903f1839901c9e141957d1d4b503ca281a2 (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
#  Maintainer: Justin Benge <justinbng36@gmail.com>
#  Contributor: Jean Lucas <jean@4ray.co>

pkgname=electron-forge
pkgver=5.2.4
pkgrel=1
pkgdesc='Tool for creating, publishing, and installing modern Electron applications'
arch=(i686 x86_64)
url=https://electronforge.io
license=(MIT)
depends=(nodejs)
makedepends=(npm gulp)
conflicts=(electron-forge-git)
source=(https://github.com/electron-userland/$pkgname/archive/v$pkgver.tar.gz)
sha512sums=('20cca6e76ac7239d088930b4b4cc100d8a2051a60d777f68826a64b11c3e662a11a7f0860a5ee9370041bdd828ec2d75c62d3c509b00dd7ea7b8c15cf72aeba2')

build() {
  cd $pkgname-$pkgver
  npm install
}

package() {
  cd $pkgname-$pkgver
  _dest="$pkgdir"/usr/lib/node_modules/$pkgname
  mkdir -p {$_dest,"$pkgdir"/usr/bin}
  cp -a . $_dest
  chmod +x $_dest/dist/$pkgname.js
  ln -s /usr/lib/node_modules/$pkgname/dist/$pkgname.js "$pkgdir"/usr/bin/electron-forge
  install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}