< back to XBPS Crimes

zen-browser-bin

Firefox-based web browser inspired by Arc.

Template

srcpkgs/zen-browser-bin/template

# Template file for 'uxn2-git'
pkgname=zen-browser-bin
version=1.17.6b
revision=1
short_desc="Firefox fork inspired by Arc browser"
maintainer="[redacted]"
license="MPL-2.0, GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://zen-browser.app/"
distfiles="https://github.com/zen-browser/desktop/releases/download/${version}/zen.linux-x86_64.tar.xz"
checksum=2247b0248f9fa4408dbba2e0218e4b44bedb9cb96b579068fadcf04f59d0acce
nopie=yes

do_install() {
        vmkdir opt/zen
        vcopy * opt/zen

        # Copy .desktop file
        vinstall ${FILESDIR}/zen.desktop 644 usr/share/applications/

        # Copy icon
        vinstall ${FILESDIR}/zen.svg  644 usr/share/icons/

        # Create a symlink in /usr/bin/
        vmkdir usr/bin
        ln -s /opt/zen/zen ${DESTDIR}/usr/bin/zen
}
    

Notes

This was based on the Betterbird template from Abyss Packages.

In srcpkgs/zen-browser-bin/files we have "zen.desktop" (XDG desktop file) and "zen.svg" (the icon). In order to access these, we use the $FILESDIR variable.

"vmkdir" makes sure a required directory exists, and is required before "vcopy" and "ln -s". It is not required before "vinstall" however.

I don't know what "nopie=yes" does. It was used in Abyss Packages.

The Green Goose (add this button to your website) Hosted on Neocities Edited with Vim - Improved & Free - I love my editor Enter the Void Anti-fascism The Mod Archive