upg librewolf

This commit is contained in:
joborun linux 2023-08-04 00:58:43 +03:00
parent b86ad7e650
commit b08000dfeb
5 changed files with 324 additions and 63 deletions

View file

@ -1,2 +0,0 @@
/PKGBUILD
/PKGBUILD-aur

121
librewolf/PKGBUILD Normal file
View file

@ -0,0 +1,121 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=librewolf
provides=($pkgname-bin $pkgname)
conflicts=($pkgname-bin)
pkgver=116.0
pkgrel=02
_pkgrel=1
pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom -binary"
options=(!emptydirs)
install=librewolf.install
makedepends=(git)
backup=('usr/lib/librewolf/librewolf.cfg'
'usr/lib/librewolf/distribution/policies.json')
options=(!emptydirs)
proj_id=44042130
url="https://gitlab.com/api/v4/projects"
weburl="https://librewolf.net/"
info_url="https://librewolf-community.gitlab.io/"
srctag="${pkgver}-${_pkgrel}"
source=($url/${proj_id}/packages/generic/${pkgname//-bin/""}/${pkgver}-${_pkgrel}/${pkgname//-bin/""}-${pkgver}-${_pkgrel}-linux-x86_64-package.tar.bz2{,.sig}
"git+https://gitlab.com/${pkgname//-bin/""}-community/browser/source.git#tag=${srctag}"
librewolf.desktop
default192x192.png
librewolf.install)
install='librewolf.install'
package() {
depends=(gtk3 libxt startup-notification mime-types dbus-glib
nss ttf-liberation libpulse ffmpeg)
optdepends=('hunspell-en_US: Spell checking, American English'
'libnotify: Notification integration'
'speech-dispatcher: Text-to-Speech'
'xdg-desktop-portal: Screensharing with Wayland')
# Yep, that's somewhat redundant. But it works.
install -dm 755 ${pkgdir}/usr/lib/librewolf
install -dm 755 ${pkgdir}/usr/bin
cp -r "${srcdir}"/${pkgname//-bin/""}/* "${pkgdir}"/usr/lib/librewolf
cd ${srcdir}/${pkgname//-bin/""}
local vendorjs="$pkgdir/usr/lib/${pkgname//-bin/""}/browser/defaults/preferences/vendor.js"
install -Dvm644 /dev/stdin "$vendorjs" <<END
// Use system-provided dictionaries
pref("spellchecker.dictionary_path", "/usr/share/hunspell");
// Don't disable extensions in the application directory
// done in librewolf.cfg
// pref("extensions.autoDisableScopes", 11);
END
local distini="$pkgdir/usr/lib/${pkgname//-bin/""}/distribution/distribution.ini"
install -Dvm644 /dev/stdin "$distini" <<END
[Global]
id=io.gitlab.${pkgname//-bin/""}-community
version=1.0
about=LibreWolf
[Preferences]
app.distributor="LibreWolf Community"
app.distributor.channel=${pkgname//-bin/""}
app.partner.librewolf=${pkgname//-bin/""}
END
for i in 16 32 48 64 128; do
install -Dvm644 ${srcdir}/source/themes/browser/branding/${pkgname//-bin/""}/default$i.png \
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname//-bin/""}.png"
done
# install -Dvm644 browser/branding/librewolf/content/about-logo.png \
# "$pkgdir/usr/share/icons/hicolor/192x192/apps/$pkgname.png"
install -Dvm644 ${srcdir}/default192x192.png \
"$pkgdir/usr/share/icons/hicolor/192x192/apps/${pkgname//-bin/""}.png"
# arch upstream provides a separate svg for this. we don't have that, so let's re-use 16.png
install -Dvm644 ${srcdir}/source/themes/browser/branding/${pkgname//-bin/""}/default16.png \
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/${pkgname//-bin/""}-symbolic.png"
install -Dvm644 ${srcdir}/${pkgname//-bin/""}.desktop \
"$pkgdir/usr/share/applications/${pkgname//-bin/""}.desktop"
# Install a wrapper to avoid confusion about binary path
install -Dvm755 /dev/stdin "$pkgdir/usr/bin/${pkgname//-bin/""}" <<END
#!/bin/sh
exec /usr/lib/${pkgname//-bin/""}/librewolf "\$@"
END
# Replace duplicate binary with wrapper
# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
ln -srfv "$pkgdir/usr/bin/${pkgname//-bin/""}" "$pkgdir/usr/lib/${pkgname//-bin/""}/librewolf-bin"
# Use system certificates
local nssckbi="$pkgdir/usr/lib/${pkgname//-bin/""}/libnssckbi.so"
if [[ -e $nssckbi ]]; then
ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi"
fi
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(MPL GPL LGPL)
validpgpkeys=('662E3CDD6FE329002D0CA5BB40339DD82B12EF16') # librewolf maintainers
sha256sums=(d17c51c2872ebc5c73f47d8f67dfc61663a8229bdbfc4e2e41e0fd46ddf90e0b # librewolf-116.0-1-linux-x86_64-package.tar.bz2
c28545b635944eb4bd28ff35c0b6b1301d0532ca29364758d9f20f126ab82c5c # librewolf-116.0-1-linux-x86_64-package.tar.bz2.sig
SKIP # git source
7d01d317b7db7416783febc18ee1237ade2ec86c1567e2c2dd628a94cbf2f25d # librewolf.desktop
959c94c68cab8d5a8cff185ddf4dca92e84c18dccc6dc7c8fe11c78549cdc2f1 # default192x192.png
c3d94f33b96944e80b6fe84e36eaa9b4179ab144fe7aa58c5aa2efae0e2004b9) # librewolf.install
## f556e26f0ade4b7e24debcc9800ee26ff572ec7f66cfee315d0d53beb1fdce4a librewolf-116.0-02-x86_64.pkg.tar.lz

115
librewolf/PKGBUILD-aur Normal file
View file

@ -0,0 +1,115 @@
# Maintainer: lsf <lsf at pfho dot net>
pkgname=librewolf-bin
provides=(${pkgname//-bin/""})
conflicts=(${pkgname//-bin/""})
pkgver=116.0
pkgrel=1
pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom."
arch=(x86_64 aarch64)
license=(MPL GPL LGPL)
url="https://librewolf-community.gitlab.io/"
depends=(gtk3 libxt startup-notification mime-types dbus-glib
nss ttf-font libpulse ffmpeg)
makedepends=(git)
optdepends=(
'hunspell-en_US: Spell checking, American English'
'libnotify: Notification integration'
'networkmanager: Location detection via available WiFi networks'
'pulseaudio: Audio support'
'speech-dispatcher: Text-to-Speech'
'xdg-desktop-portal: Screensharing with Wayland'
)
validpgpkeys=('662E3CDD6FE329002D0CA5BB40339DD82B12EF16') # librewolf maintainers
backup=('usr/lib/librewolf/librewolf.cfg'
'usr/lib/librewolf/distribution/policies.json')
options=(!emptydirs)
install='librewolf.install'
_project_id=44042130
_base_url=https://gitlab.com/api/v4/projects/${_project_id}/packages/generic/${pkgname//-bin/""}/${pkgver}-${pkgrel}
_uploadpath_aarch64=${_base_url}/${pkgname//-bin/""}-${pkgver}-${pkgrel}-linux-arm64-package.tar.bz2
_uploadpath_x86_64=${_base_url}/${pkgname//-bin/""}-${pkgver}-${pkgrel}-linux-x86_64-package.tar.bz2
_uploadpath_sig_aarch64=${_uploadpath_aarch64}.sig
_uploadpath_sig_x86_64=${_uploadpath_x86_64}.sig
_source_tag="${pkgver}-${pkgrel}"
source=(
"git+https://gitlab.com/${pkgname//-bin/""}-community/browser/source.git#tag=${_source_tag}"
default192x192.png
librewolf.desktop
)
source_aarch64=("${_uploadpath_aarch64}" "${_uploadpath_sig_aarch64}")
source_x86_64=("${_uploadpath_x86_64}" "${_uploadpath_sig_x86_64}")
sha256sums=('SKIP'
'959c94c68cab8d5a8cff185ddf4dca92e84c18dccc6dc7c8fe11c78549cdc2f1'
'7d01d317b7db7416783febc18ee1237ade2ec86c1567e2c2dd628a94cbf2f25d')
sha256sums_x86_64=('d17c51c2872ebc5c73f47d8f67dfc61663a8229bdbfc4e2e41e0fd46ddf90e0b'
'SKIP')
sha256sums_aarch64=('4b632d831e117269545f39439b6780957a7301b83ca3a0edd01ac7a8f93b212a'
'SKIP')
package() {
# Yep, that's somewhat redundant. But it works.
install -dm 755 ${pkgdir}/usr/lib/librewolf
install -dm 755 ${pkgdir}/usr/bin
cp -r "${srcdir}"/${pkgname//-bin/""}/* "${pkgdir}"/usr/lib/librewolf
cd ${srcdir}/${pkgname//-bin/""}
local vendorjs="$pkgdir/usr/lib/${pkgname//-bin/""}/browser/defaults/preferences/vendor.js"
install -Dvm644 /dev/stdin "$vendorjs" <<END
// Use system-provided dictionaries
pref("spellchecker.dictionary_path", "/usr/share/hunspell");
// Don't disable extensions in the application directory
// done in librewolf.cfg
// pref("extensions.autoDisableScopes", 11);
END
local distini="$pkgdir/usr/lib/${pkgname//-bin/""}/distribution/distribution.ini"
install -Dvm644 /dev/stdin "$distini" <<END
[Global]
id=io.gitlab.${pkgname//-bin/""}-community
version=1.0
about=LibreWolf
[Preferences]
app.distributor="LibreWolf Community"
app.distributor.channel=${pkgname//-bin/""}
app.partner.librewolf=${pkgname//-bin/""}
END
for i in 16 32 48 64 128; do
install -Dvm644 ${srcdir}/source/themes/browser/branding/${pkgname//-bin/""}/default$i.png \
"$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname//-bin/""}.png"
done
# install -Dvm644 browser/branding/librewolf/content/about-logo.png \
# "$pkgdir/usr/share/icons/hicolor/192x192/apps/$pkgname.png"
install -Dvm644 ${srcdir}/default192x192.png \
"$pkgdir/usr/share/icons/hicolor/192x192/apps/${pkgname//-bin/""}.png"
# arch upstream provides a separate svg for this. we don't have that, so let's re-use 16.png
install -Dvm644 ${srcdir}/source/themes/browser/branding/${pkgname//-bin/""}/default16.png \
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/${pkgname//-bin/""}-symbolic.png"
install -Dvm644 ${srcdir}/${pkgname//-bin/""}.desktop \
"$pkgdir/usr/share/applications/${pkgname//-bin/""}.desktop"
# Install a wrapper to avoid confusion about binary path
install -Dvm755 /dev/stdin "$pkgdir/usr/bin/${pkgname//-bin/""}" <<END
#!/bin/sh
exec /usr/lib/${pkgname//-bin/""}/librewolf "\$@"
END
# Replace duplicate binary with wrapper
# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
ln -srfv "$pkgdir/usr/bin/${pkgname//-bin/""}" "$pkgdir/usr/lib/${pkgname//-bin/""}/librewolf-bin"
# Use system certificates
local nssckbi="$pkgdir/usr/lib/${pkgname//-bin/""}/libnssckbi.so"
if [[ -e $nssckbi ]]; then
ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi"
fi
}

View file

@ -1,15 +0,0 @@
post_upgrade() {
echo ">> Remember to check for changes in /usr/lib/librewolf/librewolf.cfg.pacnew"
echo ">> as those will not automatically overwrite your existing librewolf.cfg."
echo ">> "
echo ">> We would encourage you to migrate your own changes to the new overrides file"
echo ">> at ~/.librewolf/librewolf.overrides.cfg instead, so making changes directly"
echo ">> in your librewolf.cfg is not necessary anymore (in most cases at least)."
echo ">> "
echo ">> Check out https://gitlab.com/librewolf-community/settings/-/merge_requests/13"
echo ">> for more information on this."
}
post_install() {
post_upgrade
}

View file

@ -1,52 +1,50 @@
[Desktop Entry]
Version=1.0
Name=LibreWolf
GenericName=Web Browser
GenericName[ar]=متصفح ويب
GenericName[ast]=Restolador Web
GenericName[bn]=
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[da]=Webbrowser
GenericName[de]=Webbrowser
GenericName[el]=Περιηγητής διαδικτύου
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[it]=Browser web
GenericName[ja]=
GenericName[ko]=
GenericName[ku]=Geroka torê
GenericName[lt]=Interneto naršyklė
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator Internet
GenericName[ru]=Веб-браузер
GenericName[sk]=Internetový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[tr]=Web Tarayıcı
GenericName[ug]=توركۆرگۈ
GenericName[uk]=Веб-браузер
GenericName[vi]=Trình duyt Web
GenericName[zh_CN]=
GenericName[zh_TW]=
Name[ar]=متصفح الويب فَيَرفُكْس
Name[ast]=Restolador web LibreWolf
Name[bn]=
Name[ca]=Navegador web LibreWolf
Name[cs]=LibreWolf Webový prohlížeč
Name[da]=LibreWolf - internetbrowser
Name[el]=Περιηγητής LibreWolf
Name[es]=Navegador web LibreWolf
Name[et]=LibreWolfi veebibrauser
Name[fa]=مرورگر اینترنتی LibreWolf
Name[fi]=LibreWolf-selain
Name[fr]=Navigateur Web LibreWolf
Name[gl]=Navegador web LibreWolf
Name[he]=דפדפן האינטרנט LibreWolf
Name[hr]=LibreWolf web preglednik
Name[hu]=LibreWolf webböngésző
Name[it]=LibreWolf Browser Web
Name[ja]=LibreWolf
Name[ko]=LibreWolf
Name[ku]=Geroka torê LibreWolf
Name[lt]=LibreWolf interneto naršyklė
Name[nb]=LibreWolf Nettleser
Name[nl]=LibreWolf webbrowser
Name[nn]=LibreWolf Nettlesar
Name[no]=LibreWolf Nettleser
Name[pl]=Przeglądarka WWW LibreWolf
Name[pt]=LibreWolf Navegador Web
Name[pt_BR]=Navegador Web LibreWolf
Name[ro]=LibreWolf Navigator Internet
Name[ru]=Веб-браузер LibreWolf
Name[sk]=LibreWolf - internetový prehliadač
Name[sl]=LibreWolf spletni brskalnik
Name[sv]=LibreWolf webbläsare
Name[tr]=LibreWolf Web Tarayıcısı
Name[ug]=LibreWolf توركۆرگۈ
Name[uk]=Веб-браузер LibreWolf
Name[vi]=Trình duyt web LibreWolf
Name[zh_CN]=LibreWolf
Name[zh_TW]=LibreWolf
Comment=Browse the World Wide Web
Comment[ar]=تصفح الشبكة العنكبوتية العالمية
Comment[ast]=Restola pela Rede
Comment[bn]=
Comment[ca]=Navegueu per el web
Comment[ca]=Navegueu per la web
Comment[cs]=Prohlížení stránek World Wide Webu
Comment[da]=Surf på internettet
Comment[de]=Im Internet surfen
@ -83,6 +81,46 @@ Comment[uk]=Перегляд сторінок Інтернету
Comment[vi]=Đ duyt các trang web
Comment[zh_CN]=
Comment[zh_TW]=
GenericName=Web Browser
GenericName[ar]=متصفح ويب
GenericName[ast]=Restolador Web
GenericName[bn]=
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[da]=Webbrowser
GenericName[el]=Περιηγητής διαδικτύου
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[it]=Browser web
GenericName[ja]=
GenericName[ko]=
GenericName[ku]=Geroka torê
GenericName[lt]=Interneto naršyklė
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator Internet
GenericName[ru]=Веб-браузер
GenericName[sk]=Internetový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[tr]=Web Tarayıcı
GenericName[ug]=توركۆرگۈ
GenericName[uk]=Веб-браузер
GenericName[vi]=Trình duyt Web
GenericName[zh_CN]=
GenericName[zh_TW]=
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[ar]=انترنت;إنترنت;متصفح;ويب;وب
Keywords[ast]=Internet;WWW;Restolador;Web;Esplorador
@ -121,10 +159,10 @@ MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme
StartupNotify=true
StartupWMClass=LibreWolf
Categories=Network;WebBrowser;
Actions=new-window;new-private-window;profile-manager;
Actions=new-window;new-private-window;profile-manager-window;
[Desktop Action new-window]
Name=New Window
Name=Open a New Window
Name[ach]=Dirica manyen
Name[af]=Nuwe venster
Name[an]=Nueva finestra
@ -232,7 +270,7 @@ Name[zh_TW]=開新視窗
Exec=/usr/lib/librewolf/librewolf --new-window %u
[Desktop Action new-private-window]
Name=New Private Window
Name=Open a New Private Window
Name[ach]=Dirica manyen me mung
Name[af]=Nuwe privaatvenster
Name[an]=Nueva finestra privada
@ -339,6 +377,10 @@ Name[zh_CN]=新建隐私浏览窗口
Name[zh_TW]=
Exec=/usr/lib/librewolf/librewolf --private-window %u
[Desktop Action profile-manager]
[Desktop Action profile-manager-window]
Name=Open the Profile Manager
Name[cs]=Správa profilů
Name[de]=Profilverwaltung öffnen
Name[es]=Abrir el Gestor de Perfiles
Name[fr]=Ouvrir le gestionnaire de profils
Exec=/usr/lib/librewolf/librewolf --ProfileManager %u