# Template file for 'hunspell-qtwebengine-dict'
pkgname=hunspell-qtwebengine-dict
version=0.1
revision=1
short_desc="Base layout for binary dictionaries of QtWebEngine"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="BSD-2-Clause" # Suppress xlint warning: vlicense
homepage="https://voidlinux.org"
replaces="libreoffice-qtwebengine-dict>=0"
provides="libreoffice-qtwebengine-dict-24.2.2.2_1"

do_install() {
	vmkdir usr/share/qt5
	vmkdir usr/share/qt6
	rm -rf $PKGDESTDIR/usr/share/qt{5,6}/qtwebengine_dictionaries
	ln -sf ../hunspell-bdic \
		$PKGDESTDIR/usr/share/qt5/qtwebengine_dictionaries
	ln -sf ../hunspell-bdic \
		$PKGDESTDIR/usr/share/qt6/qtwebengine_dictionaries
}
