vp-build/srcpkgs/geckodriver/template

32 lines
1.3 KiB
Bash

# Template file for 'geckodriver'
pkgname=geckodriver
version=0.30.0
revision=1
_hg_commit="d372710b98a6"
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="7f8820ec83ca7671236ee74345bdbd20cf328fde4896397353952c0cc4e0eb91
4828ec0256835b893e5642439f83f9de84512a84e4a711262b6f2c37dff15ec8
71043889235bf513b2539490d1c163589484628f6fcf24e4591ba4281e620d6f
5daceea2850bd034ffb1b538b4aa5f8f6915f36631ef6dbeeb9d30fe26180c38"
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