summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a17020974d383bac919b8a9b921af161c05e654 (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: Jacob Juric <jacobjuric1@gmail.com>

pkgname=gwen-web
pkgver=2.3.2
pkgrel=2
pkgdesc="A web automation engine for the Gwen interpreter."
arch=('any')
url="https://github.com/gwen-interpreter/gwen-web"
license=('Apache')
depends=('java-runtime=8')
optdepends=('chromedriver: Google Chrome support (AUR)'
            'geckodriver: Firefox support')
source=("https://github.com/gwen-interpreter/gwen-web/releases/download/v$pkgver/$pkgname-$pkgver.zip")
sha256sums=('a10af039917b3ff494c75a15faa16719022b60c485a6dbe5a832829df6d5a354')

package() {
	cd "$pkgname-$pkgver"
	install -Dm755 bin/gwen $pkgdir/opt/gwen-web/bin/gwen
	install -Dm755 bin/gwen-web $pkgdir/opt/gwen-web/bin/gwen-web
	install -Dm755 gwen $pkgdir/opt/gwen-web/gwen
	install -Dm644 CHANGELOG $pkgdir/opt/gwen-web/CHANGELOG
	install -Dm644 LICENSE $pkgdir/opt/gwen-web/LICENSE
	install -Dm644 LICENSE-THIRDPARTY $pkgdir/opt/gwen-web/LICENSE-THIRDPARTY
	install -Dm644 NOTICE $pkgdir/opt/gwen-web/NOTICE
	cp -r lib $pkgdir/opt/gwen-web
        cp -r features $pkgdir/opt/gwen-web
	mkdir -p $pkgdir/usr/bin
	ln -s /opt/gwen-web/bin/gwen $pkgdir/usr/bin/gwen
	ln -s /opt/gwen-web/bin/gwen-web $pkgdir/usr/bin/gwen-web
}