void-packages/srcpkgs/geckodriver/template

32 lines
1.3 KiB
Bash

# Template file for 'geckodriver'
pkgname=geckodriver
version=0.26.0
revision=1
_hg_commit="e9783a644016aa9b317887076618425586730d73"
create_wrksrc=yes
build_wrksrc=${pkgname}
build_style=cargo
short_desc="WebDriver for Firefox"
maintainer="m3tav3rse <n6maa10816@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="c5854000621938de2aac0bdc853da62539e694adcba98b61851adcbb9ce54dd3
d84d6b84d4b37bb4fadda639026eca63dc61dd289bbeb3961eef1257be49266b
a838ae82753aaed38eff52bd2076e47a418858be39c7dc5d833070c6ee2f7beb
107aaf145d4840a389c2d4586660e95e3fa336a42bb9f94524f9a72c89c21d09"
skip_extraction="Cargo.lock"
post_extract() {
mv ${wrksrc}/mozilla-central-${_hg_commit}/testing/* ${wrksrc}
rm -r ${wrksrc}/mozilla-central-${_hg_commit}
mv ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Cargo.lock ${build_wrksrc}
}
case $XBPS_TARGET_MACHINE in
armv[56]*) broken="there is no firefox for armv5/6" ;;
esac