Initial commit
This commit is contained in:
commit
b95b441451
14 changed files with 1247 additions and 0 deletions
162
PKGBUILD
Normal file
162
PKGBUILD
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
||||
# Contributor: lsf <lsf at pfho dot net>
|
||||
|
||||
pkgname=librewolf-bin
|
||||
provides=(${pkgname//-bin/""})
|
||||
conflicts=(${pkgname//-bin/""})
|
||||
epoch=1
|
||||
pkgver=142.0.1_1
|
||||
_fixedfirefoxver="${pkgver%_*}" # Version of Firefox this LibreWolf version is based on, but the Firefox patch number is always included
|
||||
_librewolfver="${pkgver#*_}"
|
||||
_firefoxver="${_fixedfirefoxver%.0}" # Removes ".0" from the end. For "136.0.0" this will result in "136.0" but for "136.0.1" won't do anything.
|
||||
pkgrel=1
|
||||
pkgdesc="Community-maintained fork of Firefox, focused on privacy, security and freedom."
|
||||
arch=(x86_64 aarch64)
|
||||
license=(MPL-2.0)
|
||||
url="https://librewolf.net/"
|
||||
|
||||
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-bin.install'
|
||||
|
||||
_project_id=44042130
|
||||
_base_url=https://gitlab.com/api/v4/projects/${_project_id}/packages/generic/${pkgname//-bin/""}/$_firefoxver-$_librewolfver
|
||||
_uploadpath_aarch64=${_base_url}/${pkgname//-bin/""}-$_firefoxver-$_librewolfver-linux-arm64-package.tar.xz
|
||||
_uploadpath_x86_64=${_base_url}/${pkgname//-bin/""}-$_firefoxver-$_librewolfver-linux-x86_64-package.tar.xz
|
||||
_uploadpath_sig_aarch64=${_uploadpath_aarch64}.sig
|
||||
_uploadpath_sig_x86_64=${_uploadpath_x86_64}.sig
|
||||
_source_tag="$_firefoxver-$_librewolfver"
|
||||
source=(
|
||||
"git+https://gitlab.com/${pkgname//-bin/""}-community/browser/source.git#tag=${_source_tag}"
|
||||
default192x192.png
|
||||
librewolf.svg
|
||||
librewolf-symbolic.svg
|
||||
librewolf.desktop
|
||||
)
|
||||
source_aarch64=(
|
||||
"${_uploadpath_aarch64}"
|
||||
"${_uploadpath_sig_aarch64}"
|
||||
)
|
||||
source_x86_64=(
|
||||
"${_uploadpath_x86_64}"
|
||||
"${_uploadpath_sig_x86_64}"
|
||||
)
|
||||
b2sums=('1c1ab0db22b5f7bc4c323c3bcd020e70a448c38198f6f6f700bf3d6fb6e2e2a1d0dd6f38bcd64fb65aa197ab20c41fde16185118d35b7f7f2ed7df7cd98a68bf'
|
||||
'bc8d69df64681bd0e6d74bb791576371ce5853d4d4596781f2b7e6d8a9c04256758df45c284ecb450eec53cbf5038e38c09476d436ad4e03b7b5ce672714c67b'
|
||||
'c5ae312758c58b75ca5aca02b9baef2e1c5a7a45c30c27714882be62871b79016ac7f7dcee76c1f17f544e0fe0977224adddc9fbc78cdb5993533f1618c60773'
|
||||
'054348c3b31c398bb35140f77e752c624b78f7e6a0172798338ab88a88b70da10304c810d8457d95929c3ab3fe08a06eed54d56d192d122b695838e9f909023f'
|
||||
'0b4788bc1264a1e66acc66277a06f6fe39522f8da819fd741081f17f157a840ec3e4dc419e53fcb1ddd9de5efcb8d54843e4de1673d55989a39e0e805f863aef')
|
||||
b2sums_x86_64=('c9c29de8c8f149c9df0474922b6d0ad253c1373de6fb44114befe1848f61b564ae5fbf90c0e9fee983ff2aef92e2bc7aec5d27ce5625ea1d039485815ab0aba9'
|
||||
'SKIP')
|
||||
b2sums_aarch64=('31a8885e3da4bf7b62215e58391f7b3424f30280f73e6a80aceae049d5e3906e4846346b1205623b4fff64c1beefea3c9ebf502351effe5157e925a8aaea5a9c'
|
||||
'SKIP')
|
||||
|
||||
package() {
|
||||
depends+=(
|
||||
alsa-lib
|
||||
at-spi2-core
|
||||
bash
|
||||
cairo
|
||||
dbus
|
||||
ffmpeg
|
||||
fontconfig
|
||||
freetype2
|
||||
gcc-libs
|
||||
gdk-pixbuf2
|
||||
glib2
|
||||
glibc
|
||||
gtk3
|
||||
hicolor-icon-theme
|
||||
libpulse
|
||||
libx11
|
||||
libxcb
|
||||
libxcomposite
|
||||
libxcursor
|
||||
libxdamage
|
||||
libxext
|
||||
libxfixes
|
||||
libxi
|
||||
libxrandr
|
||||
libxrender
|
||||
libxt
|
||||
mime-types
|
||||
nspr
|
||||
nss
|
||||
pango
|
||||
startup-notification
|
||||
ttf-font
|
||||
)
|
||||
# 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
|
||||
|
||||
|
||||
install -Dvm644 ${srcdir}/librewolf.svg \
|
||||
"$pkgdir/usr/share/icons/hicolor/scalable/apps/${pkgname//-bin/""}.svg"
|
||||
|
||||
# arch upstream provides a separate svg for this. we don't have that, so let's re-use 16.png
|
||||
install -Dvm644 ${srcdir}/librewolf-symbolic.svg \
|
||||
"$pkgdir/usr/share/icons/hicolor/symbolic/apps/${pkgname//-bin/""}-symbolic.svg"
|
||||
|
||||
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
|
||||
|
||||
}
|
||||
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
Loading…
Add table
Add a link
Reference in a new issue