Void Linux workstation powered by niri, Fish and NeoVim. Contains scripts, browser extensions, custom XBPS packages, and typst plugins. git.anhgelus.world/anhgelus/dotfiles
void niri fish neovim nvim vim dotfiles linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(packages): zen browser xbps template

+130
+57
packages/zen-browser/README.md
··· 1 + # Zen Browser XBPS Package 2 + 3 + This folder contains files for packaging Zen Browser for Void Linux using the XBPS package manager. 4 + 5 + ## Files 6 + 7 + 1. `template`: XBPS template file for Zen Browser 8 + 2. `files/update-template.sh`: Script to update the Zen Browser XBPS template 9 + 10 + ## Template File 11 + 12 + The `template` file is an XBPS template for Zen Browser. 13 + 14 + - Architecture: x86_64 only 15 + - Build style: precompiled binaries 16 + 17 + The template file handles the installation of precompiled binaries and sets up the necessary dependencies. 18 + 19 + ## Update Script 20 + 21 + The `update-template.sh` script automates the process of updating the Zen Browser XBPS template. It performs the following tasks: 22 + 23 + 1. Fetches the latest release version from the Zen Browser GitHub repository 24 + 2. Updates the version in the template file 25 + 3. Updates the checksums 26 + 4. Installs the updated Zen Browser package 27 + 28 + ### Prerequisites 29 + 30 + To use the update script, you need: 31 + 32 + - vpsm 33 + - xbps-src 34 + - curl 35 + - sed 36 + - sh 37 + 38 + ### Usage 39 + 40 + To update the Zen Browser package: 41 + 42 + 1. Ensure you have met all prerequisites 43 + 2. Run the update script: 44 + ```sh 45 + chmod +x files/update-template.sh 46 + ./files/update-template.sh 47 + ``` 48 + 49 + ## Contributing 50 + 51 + If you want to contribute to this package, please make sure to test your changes thoroughly before submitting a pull request. 52 + 53 + This is a fork of https://github.com/salastro/zen-browser. 54 + 55 + ## Issues 56 + 57 + If you encounter any issues with the package or the update script, please open an issue in this repository.
+24
packages/zen-browser/files/update-template.sh
··· 1 + #!/usr/bin/bash 2 + 3 + # Script to update Zen Browser xbps-src template 4 + # 5 + # Required: xbps-src, curl, sed, xtools 6 + # 7 + # You have to set XBPS_DISTDIR 8 + # Example: export XBPS_DISTDIR="$HOME/.void-packages" 9 + 10 + void_packages="../.." 11 + 12 + release_url=$(curl -Ls -o /dev/null -w '%{url_effective}' https://github.com/zen-browser/desktop/releases/latest) 13 + release_tag=$(basename "$release_url" | sed 's/-//g') 14 + echo "Downloading Zen Browser $release_tag" 15 + 16 + sed -i 's/version=[a-zA-Z0-9.-]\+/version='"$release_tag"'/' "$void_packages/srcpkgs/zen-browser/template" && \ 17 + echo "Updated version in template to $release_tag" 18 + 19 + xgensum -i zen-browser && echo "Checksums generated for Zen Browser" 20 + 21 + $void_packages/xbps-src fetch zen-browser 22 + 23 + $void_packages/xbps-src pkg zen-browser && echo "Zen Browser package built" 24 +
+10
packages/zen-browser/files/zen-browser.desktop
··· 1 + [Desktop Entry] 2 + Name=Zen Browser 3 + StartupWMClass=zen-browser 4 + Comment=Welcome to a calmer internet. 5 + GenericName=Web Browser 6 + Exec=/usr/lib/zen-browser/zen 7 + Icon=zen-browser 8 + Type=Application 9 + Categories=Network;WebBrowser; 10 + Path=/usr/bin
+39
packages/zen-browser/template
··· 1 + # Template file for 'zen-browser' 2 + pkgname=zen-browser 3 + version=1.16.2b 4 + revision=1 5 + only_for_archs="x86_64" 6 + meta=yes 7 + hostmakedepends="tar xz" 8 + short_desc="Minimalistic web browser" 9 + maintainer="SalahDin Rezk <salah2112004@gmail.com>" 10 + license="MPL-2.0" 11 + homepage="https://www.zen-browser.app/" 12 + distfiles="https://github.com/zen-browser/desktop/releases/download/${version/a/-a}/zen.linux-x86_64.tar.xz" 13 + checksum=10976d3935327a3262157407e40e6bad9ae1db6fe7a80d2e97e70742e1047f68 14 + 15 + do_install() { 16 + # Install the files 17 + local package_location="usr/lib/$pkgname" item 18 + 19 + vmkdir usr/share/pixmaps 20 + vcopy browser/chrome/icons/default/default128.png usr/share/pixmaps/zen-browser.png 21 + vmkdir usr/share/applications 22 + vinstall ${FILESDIR}/zen-browser.desktop 644 usr/share/applications 23 + vmkdir ${package_location} 24 + chmod +x zen 25 + vcopy * usr/lib/zen-browser 26 + 27 + # link the binary 28 + vmkdir usr/bin/ 29 + ln -sfr $DESTDIR/${package_location}/zen $DESTDIR/usr/bin/zen 30 + } 31 + 32 + # Add the necessary dependencies if there are any 33 + depends="libX11 libXcomposite libXdamage libXext libXfixes libXt libXtst \ 34 + libxkbcommon libxkbcommon-x11 libpng glib gtk+3" 35 + 36 + # Specify any optional dependencies 37 + # makedepends="" # Uncomment and set if necessary 38 + 39 + # This template assumes precompiled binaries, so you don't need to build from source.