From 96c40e59f5bf7e09fd947be37338d2c936ba25da Mon Sep 17 00:00:00 2001 From: Larvey Date: Tue, 8 Oct 2024 23:37:11 +0000 Subject: [PATCH] Updated to ${latest_version} --- .SRCINFO | 34 +++++++++++++++++++++++ PKGBUILD | 65 ++++++++++++++++++++++++++++++++++++++++++++ policies.json | 18 ++++++++++++ zen-twilight.desktop | 26 ++++++++++++++++++ zen-twilight.sh | 3 ++ 5 files changed, 146 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 policies.json create mode 100644 zen-twilight.desktop create mode 100644 zen-twilight.sh diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..41bc4198d5fc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = zen-twilight-bin + pkgdesc = Performance oriented Firefox-based web browser (Unstable) + pkgver = 66fc824 + pkgrel = 1 + url = https://github.com/zen-browser/desktop + arch = x86_64 + arch = i686 + license = MPL-2.0 + depends = gtk3 + depends = libxt + depends = mime-types + depends = dbus-glib + depends = nss + depends = ttf-font + depends = systemd + optdepends = ffmpeg: H264/AAC/MP3 decoding + optdepends = networkmanager: Location detection via available WiFi networks + optdepends = libnotify: Notification integration + optdepends = pulseaudio: Audio support + optdepends = speech-dispatcher: Text-to-Speech + optdepends = hunspell-en_US: Spell checking, American English + provides = zen-twilight=66fc824 + conflicts = zen-twilight + options = !strip + source = zen-browser-twilight.tar.bz2::https://github.com/zen-browser/desktop/releases/download/twilight/zen.linux-generic.tar.bz2 + source = zen-twilight.sh + source = zen-twilight.desktop + source = policies.json + sha256sums = 4ca7cc582a9aebf778d247033d852905d3e5051ad33ed76f870c5510000a5352 + sha256sums = e0dcdb6b380933c8e81270a28a3c8d689265e8ed0c3af45f58ff388c2f8d7686 + sha256sums = 9f4feeccb229c94a08d23055b92d7e8d5e36515b8026929259a37a26b0c43eda + sha256sums = f93eb77db526147a8a20744905923a6eda79e2fbcc9f282e2f9228a7a995c798 + +pkgname = zen-twilight-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..063fa4fabb95 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# Maintainer: Luis Vervaet + +pkgname=zen-twilight-bin +_pkgname=zen-twilight +_realpkgver=twilight +_desktopname=zen-twilight +pkgver=66fc824 +pkgrel=1 +pkgdesc="Performance oriented Firefox-based web browser (Unstable)" +arch=('x86_64' 'i686') +url="https://github.com/zen-browser/desktop" +license=(MPL-2.0) +depends=(gtk3 libxt mime-types dbus-glib nss ttf-font systemd) +optdepends=('ffmpeg: H264/AAC/MP3 decoding' + 'networkmanager: Location detection via available WiFi networks' + 'libnotify: Notification integration' + 'pulseaudio: Audio support' + 'speech-dispatcher: Text-to-Speech' + 'hunspell-en_US: Spell checking, American English') +options=(!strip) +provides=("zen-twilight=$pkgver") +conflicts=('zen-twilight') + +source=("zen-browser-$_realpkgver.tar.bz2::https://github.com/zen-browser/desktop/releases/download/$_realpkgver/zen.linux-generic.tar.bz2" + "$_pkgname.sh" + "$_desktopname.desktop" + "policies.json") +sha256sums=('4ca7cc582a9aebf778d247033d852905d3e5051ad33ed76f870c5510000a5352' + 'e0dcdb6b380933c8e81270a28a3c8d689265e8ed0c3af45f58ff388c2f8d7686' + '9f4feeccb229c94a08d23055b92d7e8d5e36515b8026929259a37a26b0c43eda' + 'f93eb77db526147a8a20744905923a6eda79e2fbcc9f282e2f9228a7a995c798') + +package() { + # Create directories + mkdir -p "$pkgdir"/usr/bin + mkdir -p "$pkgdir"/usr/share/applications + mkdir -p "$pkgdir"/opt + + # Install + cp -r zen/ "$pkgdir"/opt/$pkgname + + # Launchers + install -m755 $_pkgname.sh "$pkgdir"/usr/bin/$_pkgname + + # Desktops + install -m644 *.desktop "$pkgdir"/usr/share/applications/ + + # Icons + for i in 16x16 32x32 48x48 64x64 128x128; do + install -d "$pkgdir"/usr/share/icons/hicolor/$i/apps/ + ln -s /opt/$pkgname/browser/chrome/icons/default/default${i/x*}.png \ + "$pkgdir"/usr/share/icons/hicolor/$i/apps/$_pkgname.png + done + + # Use system-provided dictionaries + ln -Ts /usr/share/hunspell "$pkgdir"/opt/$pkgname/dictionaries + ln -Ts /usr/share/hyphen "$pkgdir"/opt/$pkgname/hyphenation + + # Use system certificates + ln -sf /usr/lib/libnssckbi.so "$pkgdir"/opt/$pkgname/libnssckbi.so + + # Disable update checks (managed by pacman) + mkdir "$pkgdir"/opt/$pkgname/distribution + install -m644 "$srcdir"/policies.json "$pkgdir"/opt/$pkgname/distribution/ +} diff --git a/policies.json b/policies.json new file mode 100644 index 000000000000..c2bc3ca83f87 --- /dev/null +++ b/policies.json @@ -0,0 +1,18 @@ +{ + "policies": { + "DisableAppUpdate": true, + "Homepage": { + "URL": "https://zen-browser.app/", + "Locked": false + }, + "SearchEngines": { + "Default": "DuckDuckGo", + "PreventInstalls": true + }, + "DNSOverHTTPS": { + "Enabled": true, + "Locked": false + } + } + } + diff --git a/zen-twilight.desktop b/zen-twilight.desktop new file mode 100644 index 000000000000..8528fb46c801 --- /dev/null +++ b/zen-twilight.desktop @@ -0,0 +1,26 @@ +[Desktop Entry] +Name=Zen Browser Twilight +Comment=Experience tranquillity while browsing the web without people tracking you! +Exec=/opt/zen-browser-bin-git/zen-bin %u +Icon=zen-twilight +Type=Application +MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json; +StartupWMClass=zen-twilight +Categories=Network;WebBrowser; +StartupNotify=true +Terminal=false +X-MultipleArgs=false +Keywords=Internet;WWW;Browser;Web;Explorer; +Actions=new-window;new-private-window;profilemanager; + +[Desktop Action new-window] +Name=Open a New Window +Exec=/opt/zen-browser-bin-git/zen-bin %u + +[Desktop Action new-private-window] +Name=Open a New Private Window +Exec=/opt/zen-browser-bin-git/zen-bin --private-window %u + +[Desktop Action profilemanager] +Name=Open the Profile Manager +Exec=/opt/zen-browser-bin-git/zen-bin --ProfileManager %u diff --git a/zen-twilight.sh b/zen-twilight.sh new file mode 100644 index 000000000000..4f7ccb843d4d --- /dev/null +++ b/zen-twilight.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exec /opt/zen-browser-bin-git/zen-bin "$@"