Skip to content

Commit

Permalink
add: zen-browser-{specific,generic}-bin (#6428)
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Brox authored Sep 16, 2024
1 parent 5614416 commit dadc4be
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,8 @@ youtube-dl-git
youtube-music-deb
yt-dlp
zap
zen-browser-generic-bin
zen-browser-specific-bin
zentile-bin
zettlr-deb
zig-bin
Expand Down
12 changes: 12 additions & 0 deletions packages/zen-browser-generic-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pkgbase = zen-browser-generic-bin
gives = zen-browser
pkgver = 1.0.1-a
pkgdesc = Experience tranquillity while browsing the web without people tracking you!
url = https://github.com/zen-browser/desktop
arch = amd64
license = MPL-2.0
repology = project: zen-browser
source = zen-browser-1.0.1-a.tar.bz2::https://github.com/zen-browser/desktop/releases/download/1.0.1-a/zen.linux-generic.tar.bz2
sha256sums = 844400da1f190f72c651958ad44a8ec154dd2f95275037e17d8401acab6c5275

pkgname = zen-browser-generic-bin
59 changes: 59 additions & 0 deletions packages/zen-browser-generic-bin/zen-browser-generic-bin.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
pkgname="zen-browser-generic-bin"
gives="zen-browser"
pkgver="1.0.1-a"
pkgdesc="Experience tranquillity while browsing the web without people tracking you!"
url="https://github.com/zen-browser/desktop"
license=("MPL-2.0")
repology=("project: zen-browser")
arch=("amd64")
source=("zen-browser-${pkgver}.tar.bz2::https://github.com/zen-browser/desktop/releases/download/${pkgver}/zen.linux-generic.tar.bz2")
sha256sums=('844400da1f190f72c651958ad44a8ec154dd2f95275037e17d8401acab6c5275')

package() {
cd "${srcdir}"

# Create directories
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"

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=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
StartupWMClass=zen-alpha
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 --private-window %u
[Desktop Action profilemanager]
Name=Open the Profile Manager
Exec=/usr/lib/zen-browser --ProfileManager %u' | tee "${pkgdir}/usr/share/applications/zen-browser.desktop" > /dev/null

mkdir -p "${pkgdir}"/usr/bin
ln -sf "/usr/lib/zen-browser/zen-bin" "${pkgdir}/usr/bin/zen-bin"
ln -sf "/usr/lib/zen-browser/zen" "${pkgdir}/usr/bin/zen"

# 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
}
12 changes: 12 additions & 0 deletions packages/zen-browser-specific-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pkgbase = zen-browser-specific-bin
gives = zen-browser
pkgver = 1.0.1-a
pkgdesc = Experience tranquillity while browsing the web without people tracking you!
url = https://github.com/zen-browser/desktop
arch = amd64
license = MPL-2.0
repology = project: zen-browser
source = zen-browser-1.0.1-a.tar.bz2::https://github.com/zen-browser/desktop/releases/download/1.0.1-a/zen.linux-specific.tar.bz2
sha256sums = b72f76d671f703f2cb6260800559c34a7645653d5b87c131c56ea9487c7b24b3

pkgname = zen-browser-specific-bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
pkgname="zen-browser-specific-bin"
gives="zen-browser"
pkgver="1.0.1-a"
pkgdesc="Experience tranquillity while browsing the web without people tracking you!"
url="https://github.com/zen-browser/desktop"
license=("MPL-2.0")
repology=("project: zen-browser")
arch=("amd64")
source=("zen-browser-${pkgver}.tar.bz2::https://github.com/zen-browser/desktop/releases/download/${pkgver}/zen.linux-specific.tar.bz2")
sha256sums=('b72f76d671f703f2cb6260800559c34a7645653d5b87c131c56ea9487c7b24b3')

package() {
cd "${srcdir}"

# Lib
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
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=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
StartupWMClass=zen-alpha
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 --private-window %u
[Desktop Action profilemanager]
Name=Open the Profile Manager
Exec=/usr/lib/zen-browser --ProfileManager %u' | tee "${pkgdir}/usr/share/applications/zen-browser.desktop" > /dev/null

# bin
mkdir -p "${pkgdir}"/usr/bin
ln -sf "/usr/lib/zen-browser/zen-bin" "${pkgdir}/usr/bin/zen-bin"
ln -sf "/usr/lib/zen-browser/zen" "${pkgdir}/usr/bin/zen"

# 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
}
26 changes: 26 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -11866,6 +11866,32 @@ pkgbase = zap

pkgname = zap
---
pkgbase = zen-browser-generic-bin
gives = zen-browser
pkgver = 1.0.1-a
pkgdesc = Experience tranquillity while browsing the web without people tracking you!
url = https://github.com/zen-browser/desktop
arch = amd64
license = MPL-2.0
repology = project: zen-browser
source = zen-browser-1.0.1-a.tar.bz2::https://github.com/zen-browser/desktop/releases/download/1.0.1-a/zen.linux-generic.tar.bz2
sha256sums = 844400da1f190f72c651958ad44a8ec154dd2f95275037e17d8401acab6c5275

pkgname = zen-browser-generic-bin
---
pkgbase = zen-browser-specific-bin
gives = zen-browser
pkgver = 1.0.1-a
pkgdesc = Experience tranquillity while browsing the web without people tracking you!
url = https://github.com/zen-browser/desktop
arch = amd64
license = MPL-2.0
repology = project: zen-browser
source = zen-browser-1.0.1-a.tar.bz2::https://github.com/zen-browser/desktop/releases/download/1.0.1-a/zen.linux-specific.tar.bz2
sha256sums = b72f76d671f703f2cb6260800559c34a7645653d5b87c131c56ea9487c7b24b3

pkgname = zen-browser-specific-bin
---
pkgbase = zentile-bin
gives = zentile
pkgver = 0.1.1
Expand Down

0 comments on commit dadc4be

Please sign in to comment.