summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 187fc617095405453251a7a6a37e4b24b80b34f6 (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
38
39
40
# Maintainer: Jean Lucas <jean@4ray.co>

pkgname=stf-git
pkgver=3.4.0+12+gcdb607a8
pkgrel=1
pkgdesc='Web application for debugging Android devices (git)'
arch=(i686 x86_64)
url=https://openstf.io
license=(Apache)
depends=(nodejs-lts-carbon
         rethinkdb
         graphicsmagick
         zeromq
         protobuf
         yasm
         pkg-config)
makedepends=(npm)
provides=(stf)
conflicts=(stf)
options=(!strip)
source=(git+http://github.com/openstf/stf)
sha512sums=(SKIP)

pkgver() {
  cd stf
  git describe --tags | sed 's/v//;s/-/+/g'
}

build() {
  cd stf
  npm install
}

package() {
  cd stf
  install -d "$pkgdir"/usr/{share/stf,bin,share/licenses/stf}
  cp -a . "$pkgdir"/usr/share/stf
  ln -s /usr/share/stf/bin/stf "$pkgdir"/usr/bin/stf
  cp LICENSE "$pkgdir"/usr/share/licenses/stf
}