Select the types of activity you want to include in your feed.
Void Linux workstation powered by niri, Fish and NeoVim. Contains scripts, browser extensions, custom XBPS packages, and typst plugins.
git.anhgelus.world/anhgelus/dotfiles
···2233This folder contains files for packaging Zen Browser for Void Linux using the XBPS package manager.
4455-## Files
66-77-1. `template`: XBPS template file for Zen Browser
88-2. `files/update-template.sh`: Script to update the Zen Browser XBPS template
99-105## Template File
116127The `template` file is an XBPS template for Zen Browser.
···16111712The template file handles the installation of precompiled binaries and sets up the necessary dependencies.
18131919-## Update Script
1414+## Installing
20152121-The `update-template.sh` script automates the process of updating the Zen Browser XBPS template. It performs the following tasks:
1616+You have to build the package with `xbps-src`:
1717+```bash
1818+./xbps-src pkg zen-browser
1919+```
22202323-1. Fetches the latest release version from the Zen Browser GitHub repository
2424-2. Updates the version in the template file
2525-3. Updates the checksums
2626-4. Installs the updated Zen Browser package
2727-2828-### Prerequisites
2121+You can check updates with:
2222+```bash
2323+./xbps-src -v update-check zen-browser
2424+```
29253030-To use the update script, you need:
3131-3232-- vpsm
3333-- xbps-src
3434-- curl
3535-- sed
3636-- sh
3737-3838-### Usage
3939-4040-To update the Zen Browser package:
4141-4242-1. Ensure you have met all prerequisites
4343-2. Run the update script:
4444- ```sh
4545- chmod +x files/update-template.sh
4646- ./files/update-template.sh
4747- ```
4848-4949-## Contributing
5050-5151-If you want to contribute to this package, please make sure to test your changes thoroughly before submitting a pull request.
5252-5353-This is a fork of https://github.com/salastro/zen-browser.
5454-5555-## Issues
5656-5757-If you encounter any issues with the package or the update script, please open an issue in this repository.
2626+You can update the package with:
2727+```
2828+xgensum -i zen-browser
2929+# to build the updated package
3030+./xbps-src pkg zen-browser
3131+```
3232+If `xgensum` is not found, install the `xtools` package.
-24
packages/zen-browser/files/update-template.sh
···11-#!/usr/bin/bash
22-33-# Script to update Zen Browser xbps-src template
44-#
55-# Required: xbps-src, curl, sed, xtools
66-#
77-# You have to set XBPS_DISTDIR
88-# Example: export XBPS_DISTDIR="$HOME/.void-packages"
99-1010-void_packages="../.."
1111-1212-release_url=$(curl -Ls -o /dev/null -w '%{url_effective}' https://github.com/zen-browser/desktop/releases/latest)
1313-release_tag=$(basename "$release_url" | sed 's/-//g')
1414-echo "Downloading Zen Browser $release_tag"
1515-1616-sed -i 's/version=[a-zA-Z0-9.-]\+/version='"$release_tag"'/' "$void_packages/srcpkgs/zen-browser/template" && \
1717- echo "Updated version in template to $release_tag"
1818-1919-xgensum -i zen-browser && echo "Checksums generated for Zen Browser"
2020-2121-$void_packages/xbps-src fetch zen-browser
2222-2323-$void_packages/xbps-src pkg zen-browser && echo "Zen Browser package built"
2424-