From 27e5164550791b39f99a71ef2898c07f7f6a5f2e Mon Sep 17 00:00:00 2001 From: m3tav3rse Date: Thu, 14 Nov 2019 19:59:28 +0100 Subject: [PATCH] geckodriver: update to 0.26.0 Sources are no longer on github, use hg.mozilla.org instead. See https://bugzilla.mozilla.org/show_bug.cgi?id=1606297 for context. --- srcpkgs/geckodriver/template | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/srcpkgs/geckodriver/template b/srcpkgs/geckodriver/template index 34e4b9d996f..9ec4a844cd2 100644 --- a/srcpkgs/geckodriver/template +++ b/srcpkgs/geckodriver/template @@ -1,14 +1,29 @@ # Template file for 'geckodriver' pkgname=geckodriver -version=0.25.0 +version=0.26.0 revision=1 +_hg_commit="e9783a644016aa9b317887076618425586730d73" +wrksrc=${pkgname} build_style=cargo short_desc="WebDriver for Firefox" maintainer="m3tav3rse " license="MPL-2.0" homepage="https://github.com/mozilla/geckodriver" -distfiles="https://github.com/mozilla/geckodriver/archive/v${version}.tar.gz" -checksum=9ba9b1be1a2e47ddd11216ce863903853975a4805e72b9ed5da8bcbcaebbcea9 +distfiles="https://hg.mozilla.org/mozilla-central/archive/${_hg_commit}.zip/testing/geckodriver/>geckodriver.zip + https://hg.mozilla.org/mozilla-central/archive/${_hg_commit}.zip/testing/webdriver/>webdriver.zip + https://hg.mozilla.org/mozilla-central/archive/${_hg_commit}.zip/testing/mozbase/rust/>mozbase-rust.zip + https://hg.mozilla.org/mozilla-central/raw-file/${_hg_commit}/Cargo.lock" +checksum="c5854000621938de2aac0bdc853da62539e694adcba98b61851adcbb9ce54dd3 + d84d6b84d4b37bb4fadda639026eca63dc61dd289bbeb3961eef1257be49266b + a838ae82753aaed38eff52bd2076e47a418858be39c7dc5d833070c6ee2f7beb + 107aaf145d4840a389c2d4586660e95e3fa336a42bb9f94524f9a72c89c21d09" +skip_extraction="Cargo.lock" + +post_extract() { + mv ${XBPS_BUILDDIR}/mozilla-central-${_hg_commit}/testing/* ${XBPS_BUILDDIR}/ + rm -r ${XBPS_BUILDDIR}/mozilla-central-${_hg_commit} + mv ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Cargo.lock ${wrksrc} +} case $XBPS_TARGET_MACHINE in armv6*)