# Template file for 'zen-browser'
pkgname=zen-browser
version=1.12.3b
revision=2
only_for_archs="x86_64"
wrksrc="${pkgname}-${version}"
build_style=meta
hostmakedepends="tar bzip2"
short_desc="Minimalistic web browser"
maintainer="Burak <burakvoid@proton.me>"
license="MPL-2.0"
homepage="https://www.zen-browser.app/"
distfiles="https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-x86_64.tar.xz"
checksum=416f93e9b6555bd1b6860392db996ea3423c3abf700712ea9cf5767e35ca7b22

do_install() {
		# Install the files
		vmkdir usr/lib/zen-browser
		vcopy * usr/lib/zen-browser

		# link the binary
		vmkdir usr/bin/
		ln -s /usr/lib/zen-browser/zen ${DESTDIR}/usr/bin/

		vmkdir local/share/applications
		vinstall "${FILESDIR}/zen_browser.desktop" 644 usr/share/applications
}

# Add the necessary dependencies if there are any
depends="libX11 libXcomposite libXdamage libXext libXfixes libXt libXtst \
libxkbcommon libxkbcommon-x11 libpng glib gtk+3"

# Specify any optional dependencies
# makedepends="" # Uncomment and set if necessary