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
···11+# Zen Browser XBPS Package
22+33+This folder contains files for packaging Zen Browser for Void Linux using the XBPS package manager.
44+55+## 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+1010+## Template File
1111+1212+The `template` file is an XBPS template for Zen Browser.
1313+1414+- Architecture: x86_64 only
1515+- Build style: precompiled binaries
1616+1717+The template file handles the installation of precompiled binaries and sets up the necessary dependencies.
1818+1919+## Update Script
2020+2121+The `update-template.sh` script automates the process of updating the Zen Browser XBPS template. It performs the following tasks:
2222+2323+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
2929+3030+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.
+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+
+10
packages/zen-browser/files/zen-browser.desktop
···11+[Desktop Entry]
22+Name=Zen Browser
33+StartupWMClass=zen-browser
44+Comment=Welcome to a calmer internet.
55+GenericName=Web Browser
66+Exec=/usr/lib/zen-browser/zen
77+Icon=zen-browser
88+Type=Application
99+Categories=Network;WebBrowser;
1010+Path=/usr/bin
+39
packages/zen-browser/template
···11+# Template file for 'zen-browser'
22+pkgname=zen-browser
33+version=1.16.2b
44+revision=1
55+only_for_archs="x86_64"
66+meta=yes
77+hostmakedepends="tar xz"
88+short_desc="Minimalistic web browser"
99+maintainer="SalahDin Rezk <salah2112004@gmail.com>"
1010+license="MPL-2.0"
1111+homepage="https://www.zen-browser.app/"
1212+distfiles="https://github.com/zen-browser/desktop/releases/download/${version/a/-a}/zen.linux-x86_64.tar.xz"
1313+checksum=10976d3935327a3262157407e40e6bad9ae1db6fe7a80d2e97e70742e1047f68
1414+1515+do_install() {
1616+ # Install the files
1717+ local package_location="usr/lib/$pkgname" item
1818+1919+ vmkdir usr/share/pixmaps
2020+ vcopy browser/chrome/icons/default/default128.png usr/share/pixmaps/zen-browser.png
2121+ vmkdir usr/share/applications
2222+ vinstall ${FILESDIR}/zen-browser.desktop 644 usr/share/applications
2323+ vmkdir ${package_location}
2424+ chmod +x zen
2525+ vcopy * usr/lib/zen-browser
2626+2727+ # link the binary
2828+ vmkdir usr/bin/
2929+ ln -sfr $DESTDIR/${package_location}/zen $DESTDIR/usr/bin/zen
3030+}
3131+3232+# Add the necessary dependencies if there are any
3333+depends="libX11 libXcomposite libXdamage libXext libXfixes libXt libXtst \
3434+libxkbcommon libxkbcommon-x11 libpng glib gtk+3"
3535+3636+# Specify any optional dependencies
3737+# makedepends="" # Uncomment and set if necessary
3838+3939+# This template assumes precompiled binaries, so you don't need to build from source.