[arch-commits] Commit in geckodriver/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sun Jan 19 15:28:43 UTC 2020


    Date: Sunday, January 19, 2020 @ 15:28:42
  Author: jelle
Revision: 553156

upgpkg: geckodriver 0.26.0-1

Upstream update, switch to using firefox's tarball as source.

Modified:
  geckodriver/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-19 13:45:06 UTC (rev 553155)
+++ PKGBUILD	2020-01-19 15:28:42 UTC (rev 553156)
@@ -1,8 +1,9 @@
 # Maintainer: Jelle van der Waa <jelle at archlinux.org>
 # Contributor: kevku <kevku at gmx.com>
 
+firefoxver=72.0.1
 pkgname=geckodriver
-pkgver=0.25.0
+pkgver=0.26.0
 pkgrel=1
 pkgdesc="Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers."
 arch=("x86_64")
@@ -9,17 +10,18 @@
 url="https://github.com/mozilla/geckodriver"
 license=("MPL")
 makedepends=("rust" "cargo" "gcc-libs")
-source=("https://github.com/mozilla/geckodriver/archive/v$pkgver.tar.gz")
-sha256sums=('9ba9b1be1a2e47ddd11216ce863903853975a4805e72b9ed5da8bcbcaebbcea9')
+source=(https://archive.mozilla.org/pub/firefox/releases/$firefoxver/source/firefox-$firefoxver.source.tar.xz{,.asc})
+sha256sums=('1fa59aedc8469c3e6ffb12449ab7de2f93776f7679eedebfb74aa309b694956f'
+            'SKIP')
+validpgpkeys=('14F26682D0916CDD81E37B6D61B7B526D98F0353') # Mozilla Software Releases <release at mozilla.com>
 
 build() {
-	cd "$pkgname-$pkgver"
-        # FIXME: upstream does not provide Cargo.lock https://github.com/mozilla/geckodriver/issues/1403
-	cargo build --release #--locked
+  cd firefox-$firefoxver
+  cargo build --bin geckodriver --release --locked
 }
 
 package() {
-	cd "$pkgname-$pkgver"
-        install -Dm755 target/release/$pkgname "$pkgdir"/usr/bin/$pkgname
-        ln -sf /usr/bin/$pkgname "$pkgdir"/usr/bin/wires
+  cd firefox-$firefoxver
+  install -Dm755 target/release/$pkgname "$pkgdir"/usr/bin/$pkgname
+  ln -sf /usr/bin/$pkgname "$pkgdir"/usr/bin/wires
 }



More information about the arch-commits mailing list