diff --git a/srcpkgs/librewolf-musl/INSTALL b/srcpkgs/librewolf-musl/INSTALL new file mode 100644 index 0000000..d4fb755 --- /dev/null +++ b/srcpkgs/librewolf-musl/INSTALL @@ -0,0 +1,21 @@ +# INSTALL +# LibreWolf setup script for Cereus/Void Musl + +case "$ACTION" in +post) + if [ "$UPDATE" = "yes" ]; then + voidnsrun -r /glibc xbps-install -Syu librewolf-bin + else + # Enter via chroot to container and install librewolf-bin + # This is necessary, because through voidnsrun it will not install automatically its dependencies, as the host already has them. + xchroot /glibc xbps-install -Syf librewolf-bin + + # Install fonts and GTK theme + voidnsrun -r /glibc xbps-install -fy freetype fontconfig libXft xorg-fonts fonts-roboto-ttf Graphite-gtk-theme-black + + # Ensure that xchroot has unmounted all binds + umount -R "glibc/dev" "glibc/etc/resolv.conf" "glibc/proc" "glibc/sys" + fi + ;; + +esac diff --git a/srcpkgs/librewolf-musl/INSTALL.msg b/srcpkgs/librewolf-musl/INSTALL.msg new file mode 100644 index 0000000..1fda37b --- /dev/null +++ b/srcpkgs/librewolf-musl/INSTALL.msg @@ -0,0 +1,5 @@ +LibreWolf has succesfully been installed in glibc container. +To launch it run: +$ voidnsrun -r /glibc /glibc/usr/bin/librewolf + +(A desktop launcher does already this for you) diff --git a/srcpkgs/librewolf-musl/REMOVE b/srcpkgs/librewolf-musl/REMOVE new file mode 100644 index 0000000..d370fd9 --- /dev/null +++ b/srcpkgs/librewolf-musl/REMOVE @@ -0,0 +1,12 @@ +# INSTALL +# LibreWolf remove script for Cereus/Void Musl + +case "$ACTION" in +post) + # Enter via chroot to container and remove librewolf-bin + xchroot /glibc xbps-install -Ryfv librewolf-bin + + # Ensure that xchroot has unmounted all binds + umount -R "/glibc/dev" "/glibc/etc/resolv.conf" "/glibc/proc" "/glibc/sys" + ;; +esac diff --git a/srcpkgs/librewolf-musl/REMOVE.msg b/srcpkgs/librewolf-musl/REMOVE.msg new file mode 100644 index 0000000..3f0abe7 --- /dev/null +++ b/srcpkgs/librewolf-musl/REMOVE.msg @@ -0,0 +1,5 @@ +LibreWolf has succesfully been removed from glibc container. +Please note that the fonts and GTK themes will not be removed, as you can need them later. + +If you will not longer need them, run: +# voidnsrun -r /glibc xbps-remove -Rfy freetype fontconfig libXft xorg-fonts fonts-roboto-ttf Graphite-gtk-theme-black diff --git a/srcpkgs/librewolf-musl/files/default128.png b/srcpkgs/librewolf-musl/files/default128.png new file mode 100644 index 0000000..8531e51 Binary files /dev/null and b/srcpkgs/librewolf-musl/files/default128.png differ diff --git a/srcpkgs/librewolf-musl/files/default16.png b/srcpkgs/librewolf-musl/files/default16.png new file mode 100644 index 0000000..f9896db Binary files /dev/null and b/srcpkgs/librewolf-musl/files/default16.png differ diff --git a/srcpkgs/librewolf-musl/files/default32.png b/srcpkgs/librewolf-musl/files/default32.png new file mode 100644 index 0000000..7876d4b Binary files /dev/null and b/srcpkgs/librewolf-musl/files/default32.png differ diff --git a/srcpkgs/librewolf-musl/files/default48.png b/srcpkgs/librewolf-musl/files/default48.png new file mode 100644 index 0000000..00e6755 Binary files /dev/null and b/srcpkgs/librewolf-musl/files/default48.png differ diff --git a/srcpkgs/librewolf-musl/files/default64.png b/srcpkgs/librewolf-musl/files/default64.png new file mode 100644 index 0000000..f3a5079 Binary files /dev/null and b/srcpkgs/librewolf-musl/files/default64.png differ diff --git a/srcpkgs/librewolf-musl/files/librewolf.desktop b/srcpkgs/librewolf-musl/files/librewolf.desktop new file mode 100644 index 0000000..4157c9b --- /dev/null +++ b/srcpkgs/librewolf-musl/files/librewolf.desktop @@ -0,0 +1,75 @@ +[Desktop Entry] +Version=1.0 +Name=LibreWolf +GenericName=Web Browser +Comment=Browse the World Wide Web +Exec=voidnsrun -r /glibc /glibc/usr/bin/librewolf %u +Icon=librewolf +Categories=GNOME;GTK;Network;WebBrowser; +Type=Application +Terminal=false +StartupNotify=true +Keywords=Internet;WWW;Browser;Web;Explorer +MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall; +Actions=new-window;new-private-window; + +[Desktop Action new-window] +Name=Open a New Window +Name[ar]=افتح نافذة جديدة +Name[ast]=Abrir una ventana nueva +Name[bn]=Abrir una ventana nueva +Name[ca]=Obre una finestra nova +Name[cs]=Otevřít nové okno +Name[da]=Åbn et nyt vindue +Name[de]=Ein neues Fenster öffnen +Name[el]=Νέο παράθυρο +Name[es]=Abrir una ventana nueva +Name[fi]=Avaa uusi ikkuna +Name[fr]=Ouvrir une nouvelle fenêtre +Name[gl]=Abrir unha nova xanela +Name[he]=פתיחת חלון חדש +Name[hr]=Otvori novi prozor +Name[hu]=Új ablak nyitása +Name[it]=Apri una nuova finestra +Name[ja]=新しいウィンドウを開く +Name[ko]=새 창 열기 +Name[ku]=Paceyeke nû veke +Name[lt]=Atverti naują langą +Name[nb]=Åpne et nytt vindu +Name[nl]=Nieuw venster openen +Name[pt]=Abrir nova janela +Name[pt_BR]=Abrir nova janela +Name[ro]=Deschide o fereastră nouă +Name[ru]=Новое окно +Name[sk]=Otvoriť nové okno +Name[sl]=Odpri novo okno +Name[sv]=Öppna ett nytt fönster +Name[tr]=Yeni pencere aç +Name[ug]=يېڭى كۆزنەك ئېچىش +Name[uk]=Відкрити нове вікно +Name[vi]=Mở cửa sổ mới +Name[zh_CN]=新建窗口 +Name[zh_TW]=開啟新視窗 +Exec=voidnsrun -r /glibc /glibc/usr/bin/librewolf -new-window + +[Desktop Action new-private-window] +Name=Open a New Private Window +Name[ar]=افتح نافذة جديدة للتصفح الخاص +Name[ca]=Obre una finestra nova en mode d'incògnit +Name[cs]=Otevřít nové anonymní okno +Name[de]=Ein neues privates Fenster öffnen +Name[el]=Νέο ιδιωτικό παράθυρο +Name[es]=Abrir una ventana privada nueva +Name[fi]=Avaa uusi yksityinen ikkuna +Name[fr]=Ouvrir une nouvelle fenêtre de navigation privée +Name[he]=פתיחת חלון גלישה פרטית חדש +Name[hu]=Új privát ablak nyitása +Name[it]=Apri una nuova finestra anonima +Name[nb]=Åpne et nytt privat vindu +Name[ru]=Новое приватное окно +Name[sl]=Odpri novo okno zasebnega brskanja +Name[sv]=Öppna ett nytt privat fönster +Name[tr]=Yeni gizli pencere aç +Name[uk]=Відкрити нове вікно у потайливому режимі +Name[zh_TW]=開啟新隱私瀏覽視窗 +Exec=voidnsrun -r /glibc /glibc/usr/bin/librewolf -private-window diff --git a/srcpkgs/librewolf-musl/files/librewolf.svg b/srcpkgs/librewolf-musl/files/librewolf.svg new file mode 100644 index 0000000..2c6262a --- /dev/null +++ b/srcpkgs/librewolf-musl/files/librewolf.svg @@ -0,0 +1,90 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/srcpkgs/librewolf-musl/template b/srcpkgs/librewolf-musl/template new file mode 100644 index 0000000..fa405f5 --- /dev/null +++ b/srcpkgs/librewolf-musl/template @@ -0,0 +1,32 @@ +# Template file for 'librewolf-musl' +pkgname=librewolf-musl +_realname=librewolf +version=103.0.2 +revision=2 +_release=1 +archs="x86_64-musl" +repository="cereus-extra" +short_desc="Community-maintained fork of Firefox, focused on privacy, security and freedom - glibc containerized package" +maintainer="Kevin F. " +hostmakedepends="tar xz xbps-triggers" +makedepends="xbps-triggers" +depends="voidnsrun-setup" +license="MPL-2.0" +homepage="https://gitlab.com/librewolf-community" + +do_install() { + # Copy launcher + vmkdir usr/share/applications + vcopy ${FILESDIR}/${_realname}.desktop usr/share/applications + + # Install the icons + for res in 16 32 48 64 128; do + vmkdir usr/share/icons/hicolor/${res}x${res}/apps + vcopy ${FILESDIR}/default${res}.png \ + usr/share/icons/hicolor/${res}x${res}/apps/${_realname}.png + done + + vinstall ${FILESDIR}/${_realname}.svg 0644 \ + usr/share/icons/hicolor/scalable/apps/ + +}