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.

build(packages): use standard way to update zen browser

+20 -67
+16 -41
packages/zen-browser/README.md
··· 2 2 3 3 This folder contains files for packaging Zen Browser for Void Linux using the XBPS package manager. 4 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 5 ## Template File 11 6 12 7 The `template` file is an XBPS template for Zen Browser. ··· 16 11 17 12 The template file handles the installation of precompiled binaries and sets up the necessary dependencies. 18 13 19 - ## Update Script 14 + ## Installing 20 15 21 - The `update-template.sh` script automates the process of updating the Zen Browser XBPS template. It performs the following tasks: 16 + You have to build the package with `xbps-src`: 17 + ```bash 18 + ./xbps-src pkg zen-browser 19 + ``` 22 20 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 21 + You can check updates with: 22 + ```bash 23 + ./xbps-src -v update-check zen-browser 24 + ``` 29 25 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. 26 + You can update the package with: 27 + ``` 28 + xgensum -i zen-browser 29 + # to build the updated package 30 + ./xbps-src pkg zen-browser 31 + ``` 32 + If `xgensum` is not found, install the `xtools` package.
-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 -
+2 -2
packages/zen-browser/template
··· 1 1 # Template file for 'zen-browser' 2 2 pkgname=zen-browser 3 - version=1.17.11b_1 3 + version=1.18.5b 4 4 revision=1 5 5 only_for_archs="x86_64" 6 6 meta=yes ··· 10 10 license="MPL-2.0" 11 11 homepage="https://www.zen-browser.app/" 12 12 distfiles="https://github.com/zen-browser/desktop/releases/download/${version/a/-a}/zen.linux-x86_64.tar.xz" 13 - checksum=10976d3935327a3262157407e40e6bad9ae1db6fe7a80d2e97e70742e1047f68 13 + checksum=7f8ed156cc7f69b7a4a4de7b50291f3dceb0966d30a8dbd941f7340643bad404 14 14 15 15 do_install() { 16 16 # Install the files
+2
packages/zen-browser/update
··· 1 + site=https://github.com/zen-browser/desktop/releases/latest 2 + pattern="Release build - \K[\d.b]+(?= \([\d-]+\))"