blob: eec4425ec03a5c2b15f00820aeddd69854864d71 (
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
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=geckodriver-hg
pkgver=r552364.1581160e62e6
pkgrel=3
pkgdesc="WebDriver for Firefox"
arch=('i686' 'x86_64')
url="https://github.com/mozilla/geckodriver"
license=('MPL')
depends=('gcc-libs')
makedepends=('mercurial' 'rust')
provides=("geckodriver=$pkgver")
conflicts=('geckodriver')
source=("hg+https://hg.mozilla.org/mozilla-central/")
sha256sums=('SKIP')
prepare() {
cd "mozilla-central/testing/geckodriver"
if [ ! -f "Cargo.lock" ]; then
cargo update
fi
cargo fetch
}
pkgver() {
cd "mozilla-central/testing/geckodriver"
_rev=$(hg identify -n)
_hash=$(hg identify -i)
printf "r%s.%s" "$_rev" "$_hash"
}
check() {
cd "mozilla-central/testing/geckodriver"
#cargo test \
# --frozen
}
package() {
cd "mozilla-central/testing/geckodriver"
cargo install \
--locked \
--no-track \
--root "$pkgdir/usr" \
--path "$srcdir/mozilla-central/testing/geckodriver"
}
|