void-packages/srcpkgs/geckodriver/template
2021-03-01 16:45:46 -03:00

32 lines
1.3 KiB
Bash

# Template file for 'geckodriver'
pkgname=geckodriver
version=0.29.0
revision=1
_hg_commit="cf6956a5ec8e"
create_wrksrc=yes
build_wrksrc=${pkgname}
build_style=cargo
short_desc="WebDriver for Firefox"
maintainer="m3tav3rse <mtvrs@tuta.io>"
license="MPL-2.0"
homepage="https://github.com/mozilla/geckodriver"
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="5095be872b66c3b0dfc9d3d82bf0a62613b0f9783731d9ea0def6d6019d24b14
d5297cd054ca19ea23f9e6722b9ada89e0d73941efc374fdbfc613bf18fda544
921ed447ece7058652429dfb79a9db4bf0c467163761cbfc3d9daba00b77b662
048970448a118b1569b9e70192c0214a86363e0c25094819d4cf6b99ee54eef0"
skip_extraction="Cargo.lock"
post_extract() {
mv ${wrksrc}/mozilla-central-${_hg_commit}/testing/* ${wrksrc}
rm -r ${wrksrc}/mozilla-central-${_hg_commit}
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Cargo.lock ${build_wrksrc}
}
case $XBPS_TARGET_MACHINE in
armv[56]*) broken="there is no firefox for armv5/6" ;;
esac