Skip to content

Commit

Permalink
add: zen-browser-aarch64-bin (#6759)
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Brox authored Dec 13, 2024
1 parent 6f52110 commit 039c93d
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ yt-dlp
zap
zed-editor-preview-bin
zed-editor-stable-bin
zen-browser-aarch64-bin
zen-browser-generic-bin
zen-browser-specific-bin
zentile-bin
Expand Down
46 changes: 46 additions & 0 deletions packages/zen-browser-aarch64-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pkgbase = zen-browser-aarch64-bin
gives = zen-browser
pkgver = 1.0.2-b.1
pkgrel = 1
pkgdesc = Experience tranquillity while browsing the web without people tracking you!
url = https://zen-browser.app/
arch = arm64
depends = libasound2
depends = libatk1.0-0
depends = libc6
depends = libcairo-gobject2
depends = libcairo2
depends = libdbus-1-3
depends = libevent-2.1-7
depends = libffi8
depends = libfontconfig1
depends = libfreetype6
depends = libgcc-s1
depends = libgdk-pixbuf-2.0-0
depends = libglib2.0-0
depends = libgtk-3-0
depends = libnspr4
depends = libnss3
depends = libpango-1.0-0
depends = libstdc++6
depends = libvpx9
depends = libx11-6
depends = libx11-xcb1
depends = libxcb-shm0
depends = libxcb1
depends = libxcomposite1
depends = libxdamage1
depends = libxext6
depends = libxfixes3
depends = libxrandr2
depends = zlib1g
depends = fontconfig
depends = procps
depends = debianutils
license = MPL-2.0
maintainer = D-Brox <[email protected]>
repology = project: zen-browser
source = zen-browser-1.0.2-b.1.tar.bz2::https://github.com/zen-browser/desktop/releases/download/1.0.2-b.1/zen.linux-aarch64.tar.bz2
sha256sums = 631e09f73339674c5f90fd0589d199788ff81bb2076d31b32323e895c20e896d

pkgname = zen-browser-aarch64-bin
76 changes: 76 additions & 0 deletions packages/zen-browser-aarch64-bin/zen-browser-aarch64-bin.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
pkgname="zen-browser-aarch64-bin"
gives="zen-browser"
pkgver="1.0.2-b.1"
pkgrel=1
pkgdesc="Experience tranquillity while browsing the web without people tracking you!"
url="https://zen-browser.app/"
license=("MPL-2.0")
repology=("project: zen-browser")
arch=("arm64")
maintainer=("D-Brox <[email protected]>")

source=("zen-browser-${pkgver}.tar.bz2::https://github.com/zen-browser/desktop/releases/download/${pkgver}/zen.linux-aarch64.tar.bz2")
sha256sums=('631e09f73339674c5f90fd0589d199788ff81bb2076d31b32323e895c20e896d')
depends=("libasound2" "libatk1.0-0" "libc6" "libcairo-gobject2" "libcairo2" "libdbus-1-3" "libevent-2.1-7" "libffi8" "libfontconfig1" "libfreetype6" "libgcc-s1" "libgdk-pixbuf-2.0-0" "libglib2.0-0" "libgtk-3-0" "libnspr4" "libnss3" "libpango-1.0-0" "libstdc++6" "libvpx9" "libx11-6" "libx11-xcb1" "libxcb-shm0" "libxcb1" "libxcomposite1" "libxdamage1" "libxext6" "libxfixes3" "libxrandr2" "zlib1g" "fontconfig" "procps" "debianutils")

package() {
cd "${srcdir}"

# Zen
mkdir -p "${pkgdir}/usr/lib/zen-browser"
cp -r zen/* "${pkgdir}/usr/lib/zen-browser"
chmod +x "${pkgdir}/usr/lib/zen-browser/zen"
chmod +x "${pkgdir}/usr/lib/zen-browser/zen-bin"

# Desktop entry
mkdir -p "${pkgdir}/usr/share/applications/"
echo '[Desktop Entry]
Name=Zen Browser
Comment=Experience tranquillity while browsing the web without people tracking you!
Exec=/usr/lib/zen-browser/zen-bin %u
X-MultipleArgs=false
Terminal=false
Type=Application
Icon=zen-browser
Categories=Network;WebBrowser;
MimeType=application/json;application/pdf;application/rdf+xml;application/rss+xml;application/x-xpinstall;application/xhtml+xml;application/xml;audio/flac;audio/ogg;audio/webm;image/avif;image/gif;image/jpeg;image/png;image/svg+xml;image/webp;text/html;text/xml;video/ogg;video/webm;x-scheme-handler/chrome;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/mailto;
StartupWMClass=zen-beta
StartupNotify=true
Keywords=Internet;WWW;Browser;Web;Explorer;
Actions=new-window;new-private-window;profilemanager;
[Desktop Action new-window]
Name=Open a New Window
Exec=/usr/lib/zen-browser/zen-bin %u
[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=/usr/lib/zen-browser/zen-bin --private-window %u
[Desktop Action profilemanager]
Name=Open the Profile Manager
Exec=/usr/lib/zen-browser/zen-bin --ProfileManager %u' | tee "${pkgdir}/usr/share/applications/zen-browser.desktop" > /dev/null

# Executable
mkdir -p "${pkgdir}"/usr/bin
# shellcheck disable=SC2016
echo '#!/usr/bin/bash
[[ -z $MOZ_DISABLE_WAYLAND ]] && { [[ $XDG_CURRENT_DESKTOP == "GNOME" ]] && [[ -n $WAYLAND_DISPLAY ]] || [[ $XDG_SESSION_TYPE == "wayland" ]]; } && export MOZ_ENABLE_WAYLAND=1 && export MOZ_DBUS_REMOTE=1
exec /usr/lib/zen-browser/zen-bin "$@"' | tee "${pkgdir}/usr/bin/zen-browser" > /dev/null
chmod +x "${pkgdir}/usr/bin/zen-browser"

# Icons
for i in 16x16 32x32 48x48 64x64 128x128; do
mkdir -p "${pkgdir}/usr/share/icons/hicolor/${i}/apps/"
ln -s "/usr/lib/zen-browser/browser/chrome/icons/default/default${i/x*/}.png" \
"${pkgdir}/usr/share/icons/hicolor/${i}/apps/zen-browser.png"
done

# Policies
mkdir -p "${pkgdir}/usr/lib/zen-browser/distribution"
echo '{
"policies": {
"DisableAppUpdate": true
}
}' | tee "${pkgdir}/usr/lib/zen-browser/distribution/policies.json" > /dev/null
}
47 changes: 47 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -13169,6 +13169,53 @@ pkgbase = zed-editor-stable-bin

pkgname = zed-editor-stable-bin
---
pkgbase = zen-browser-aarch64-bin
gives = zen-browser
pkgver = 1.0.2-b.1
pkgrel = 1
pkgdesc = Experience tranquillity while browsing the web without people tracking you!
url = https://zen-browser.app/
arch = arm64
depends = libasound2
depends = libatk1.0-0
depends = libc6
depends = libcairo-gobject2
depends = libcairo2
depends = libdbus-1-3
depends = libevent-2.1-7
depends = libffi8
depends = libfontconfig1
depends = libfreetype6
depends = libgcc-s1
depends = libgdk-pixbuf-2.0-0
depends = libglib2.0-0
depends = libgtk-3-0
depends = libnspr4
depends = libnss3
depends = libpango-1.0-0
depends = libstdc++6
depends = libvpx9
depends = libx11-6
depends = libx11-xcb1
depends = libxcb-shm0
depends = libxcb1
depends = libxcomposite1
depends = libxdamage1
depends = libxext6
depends = libxfixes3
depends = libxrandr2
depends = zlib1g
depends = fontconfig
depends = procps
depends = debianutils
license = MPL-2.0
maintainer = D-Brox <[email protected]>
repology = project: zen-browser
source = zen-browser-1.0.2-b.1.tar.bz2::https://github.com/zen-browser/desktop/releases/download/1.0.2-b.1/zen.linux-aarch64.tar.bz2
sha256sums = 631e09f73339674c5f90fd0589d199788ff81bb2076d31b32323e895c20e896d

pkgname = zen-browser-aarch64-bin
---
pkgbase = zen-browser-generic-bin
gives = zen-browser
pkgver = 1.0.2-b.1
Expand Down

0 comments on commit 039c93d

Please sign in to comment.