# Template file for 'iridium-rpm'
pkgname=iridium-rpm
version=85.0
revision=1
_rpmfilename="iridium-browser-2020.11.85-1.el8.x86_64.rpm"
archs="x86_64"
wrksrc="${pkgname}-${version}"
create_wrksrc=yes
hostmakedepends="rpmextract cpio xz"
depends="alsa-lib desktop-file-utils flac GConf gnome-themes-standard gtk+ harfbuzz hicolor-icon-theme icu libpng libXtst nss opus snappy speech-dispatcher xdg-utils"
short_desc="Iridium Browser - RHEL/CentOS build altered for Void Linux"
maintainer="reback00 <reback00@protonmail.com>"
license="BSD-3-Clause"
homepage="https://iridiumbrowser.de"
distfiles="https://downloads.iridiumbrowser.de/epel8/$_rpmfilename"
checksum=4af2f18d115718742597d8079504dd8e18257819a0ecf6b9722b1cff6ae144d7
nostrip=yes

pre_fetch() {
	mkdir -p "${wrksrc}"
}

do_install() {
	mv -f usr/lib64/* usr/lib/
	rm -rf usr/lib64
	cp -r ./ "${DESTDIR}/"
}

post_install() {
	vlicense "usr/share/licenses/iridium-browser/LICENSE"
}
