diff options
| -rw-r--r-- | packages/zen-browser/README.md | 63 | ||||
| -rw-r--r-- | packages/zen-browser/files/update-template.sh | 24 | ||||
| -rw-r--r-- | packages/zen-browser/template | 4 | ||||
| -rw-r--r-- | packages/zen-browser/update | 2 |
4 files changed, 23 insertions, 70 deletions
diff --git a/packages/zen-browser/README.md b/packages/zen-browser/README.md index 403d689..4d4a324 100644 --- a/packages/zen-browser/README.md +++ b/packages/zen-browser/README.md @@ -2,11 +2,6 @@ This folder contains files for packaging Zen Browser for Void Linux using the XBPS package manager. -## Files - -1. `template`: XBPS template file for Zen Browser -2. `files/update-template.sh`: Script to update the Zen Browser XBPS template - ## Template File The `template` file is an XBPS template for Zen Browser. @@ -16,42 +11,22 @@ The `template` file is an XBPS template for Zen Browser. The template file handles the installation of precompiled binaries and sets up the necessary dependencies. -## Update Script - -The `update-template.sh` script automates the process of updating the Zen Browser XBPS template. It performs the following tasks: - -1. Fetches the latest release version from the Zen Browser GitHub repository -2. Updates the version in the template file -3. Updates the checksums -4. Installs the updated Zen Browser package - -### Prerequisites - -To use the update script, you need: - -- vpsm -- xbps-src -- curl -- sed -- sh - -### Usage - -To update the Zen Browser package: - -1. Ensure you have met all prerequisites -2. Run the update script: - ```sh - chmod +x files/update-template.sh - ./files/update-template.sh - ``` - -## Contributing - -If you want to contribute to this package, please make sure to test your changes thoroughly before submitting a pull request. - -This is a fork of https://github.com/salastro/zen-browser. - -## Issues - -If you encounter any issues with the package or the update script, please open an issue in this repository. +## Installing + +You have to build the package with `xbps-src`: +```bash +./xbps-src pkg zen-browser +``` + +You can check updates with: +```bash +./xbps-src -v update-check zen-browser +``` + +You can update the package with: +``` +xgensum -i zen-browser +# to build the updated package +./xbps-src pkg zen-browser +``` +If `xgensum` is not found, install the `xtools` package. diff --git a/packages/zen-browser/files/update-template.sh b/packages/zen-browser/files/update-template.sh deleted file mode 100644 index 0cc63ee..0000000 --- a/packages/zen-browser/files/update-template.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/bash - -# Script to update Zen Browser xbps-src template -# -# Required: xbps-src, curl, sed, xtools -# -# You have to set XBPS_DISTDIR -# Example: export XBPS_DISTDIR="$HOME/.void-packages" - -void_packages="../.." - -release_url=$(curl -Ls -o /dev/null -w '%{url_effective}' https://github.com/zen-browser/desktop/releases/latest) -release_tag=$(basename "$release_url" | sed 's/-//g') -echo "Downloading Zen Browser $release_tag" - -sed -i 's/version=[a-zA-Z0-9.-]\+/version='"$release_tag"'/' "$void_packages/srcpkgs/zen-browser/template" && \ - echo "Updated version in template to $release_tag" - -xgensum -i zen-browser && echo "Checksums generated for Zen Browser" - -$void_packages/xbps-src fetch zen-browser - -$void_packages/xbps-src pkg zen-browser && echo "Zen Browser package built" - diff --git a/packages/zen-browser/template b/packages/zen-browser/template index c1bbb39..1d922e9 100644 --- a/packages/zen-browser/template +++ b/packages/zen-browser/template @@ -1,6 +1,6 @@ # Template file for 'zen-browser' pkgname=zen-browser -version=1.17.11b_1 +version=1.18.5b revision=1 only_for_archs="x86_64" meta=yes @@ -10,7 +10,7 @@ maintainer="Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>" license="MPL-2.0" homepage="https://www.zen-browser.app/" distfiles="https://github.com/zen-browser/desktop/releases/download/${version/a/-a}/zen.linux-x86_64.tar.xz" -checksum=10976d3935327a3262157407e40e6bad9ae1db6fe7a80d2e97e70742e1047f68 +checksum=7f8ed156cc7f69b7a4a4de7b50291f3dceb0966d30a8dbd941f7340643bad404 do_install() { # Install the files diff --git a/packages/zen-browser/update b/packages/zen-browser/update new file mode 100644 index 0000000..55846ff --- /dev/null +++ b/packages/zen-browser/update @@ -0,0 +1,2 @@ +site=https://github.com/zen-browser/desktop/releases/latest +pattern="Release build - \K[\d.b]+(?= \([\d-]+\))" |
