summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df6cb2cb6249b3ed66f01e45f2a9d17eb01a1e89 (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
# Maintainer: 0xGingi <0xgingi@0xgingi.com>
pkgname=('html-builder-cli-git')
pkgver=3.0.0.r5.g696e94b
pkgrel=2
pkgdesc="The fastest way to package an HTML project into a fully native desktop app"
arch=('any')
url="https://github.com/yikuansun/html-builder-cli"
license=('GPL3')
makedepends=('git' 'nodejs' 'npm')
provides=('html-builder-cli')
conflicts=('html-builder-cli')
source=("git+https://github.com/yikuansun/html-builder-cli")
md5sums=('SKIP')

pkgver() {
  cd html-builder-cli
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() { 
npm pack html-builder-cli
npm install -g --prefix "$pkgdir/usr" html-builder-cli-*.tgz

}