32 lines
1.3 KiB
Bash
32 lines
1.3 KiB
Bash
# Template file for 'geckodriver'
|
|
pkgname=geckodriver
|
|
version=0.28.0
|
|
revision=2
|
|
_hg_commit="c00d2b6acd3fb1b197b25662fba0a96c11669b66"
|
|
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="278b0f57b4659c82a22be260e754a38d0e61fc28cb76bf8a4b672020456c2f08
|
|
eddf228980cd00a357f549435e5225a7d291305583c1d5010b0930039f6ddfb7
|
|
1049fa9f18ffc7bb03da0523d782c6f52f12bdee8b5ee3d705ee618a1e95011e
|
|
e2b6ba6af118d2fde12cdc05dfd0feca0d1d583f8bd083255dd48544fd416ca9"
|
|
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
|