Initial Commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
name: librewolf
|
||||
description: A custom version of Firefox, focused on privacy, security and freedom
|
||||
version: 136.0.4p1
|
||||
url: https://librewolf.net/
|
||||
license: MPL2
|
||||
architecture: any
|
||||
depends: ["alsa-lib","at-spi2-core","cairo","dbus","ffmpeg","fontconfig","freetype2","gcc","gdk-pixbuf","glib","glibc","gtk3","hicolor-icon-theme","pulseaudio","libx11","libxcb","libxcomposite","libxdamage","libxext","libxfixes","libxrandr","libxt","nspr","nss","pango","ttf-font","libvpx"]
|
||||
optional_depends: ["libnotify","xdg-desktop-portal"]
|
||||
make_depends: ["cbindgen","clang","diffutils","lld","llvm","mesa","nasm","nodejs","python3","rustc","unzip"]
|
||||
type: source
|
||||
@@ -0,0 +1,9 @@
|
||||
[Global]
|
||||
id=io.gitlab.librewolf-community
|
||||
version=1.0
|
||||
about=LibreWolf
|
||||
|
||||
[Preferences]
|
||||
app.distributor="LibreWolf Community"
|
||||
app.distributor.channel=librewolf
|
||||
app.partner.librewolf=librewolf
|
||||
@@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Librewolf Web Browser
|
||||
Comment=Browse the World Wide Web
|
||||
GenericName=Web Browser
|
||||
Exec=librewolf %u
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=librewolf
|
||||
Categories=GTK;Network;WebBrowser;
|
||||
MimeType=application/json;application/pdf;application/rdf+xml;application/rss+xml;application/x-xpinstall;application/xhtml+xml;application/xml;audio/flac;audio/ogg;audio/webm;image/avif;image/gif;image/jpeg;image/png;image/svg+xml;image/webp;text/html;text/xml;video/ogg;video/webm;x-scheme-handler/chrome;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/mailto;
|
||||
StartupNotify=true
|
||||
@@ -0,0 +1,36 @@
|
||||
ac_add_options --disable-necko-wifi
|
||||
ac_add_options --enable-application=browser
|
||||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/librewolf-build-dir
|
||||
|
||||
ac_add_options --prefix=/usr
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-hardening
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --disable-install-strip
|
||||
ac_add_options --disable-elf-hack
|
||||
ac_add_options --disable-bootstrap
|
||||
|
||||
# Branding
|
||||
ac_add_options --enable-update-channel=release
|
||||
ac_add_options --with-app-name=librewolf
|
||||
ac_add_options --with-app-basename=librewolf
|
||||
export MOZ_APP_REMOTINGNAME=librewolf
|
||||
|
||||
# System libraries
|
||||
ac_add_options --enable-system-ffi
|
||||
ac_add_options --enable-system-pixman
|
||||
ac_add_options --with-system-icu
|
||||
ac_add_options --with-system-libvpx
|
||||
ac_add_options --with-system-nspr
|
||||
ac_add_options --with-system-nss
|
||||
ac_add_options --with-system-webp
|
||||
ac_add_options --with-system-jpeg
|
||||
ac_add_options --with-system-zlib
|
||||
ac_add_options --without-wasm-sandboxed-libraries
|
||||
|
||||
# Features
|
||||
ac_add_options --enable-alsa
|
||||
ac_add_options --enable-crashreporter
|
||||
ac_add_options --disable-updater
|
||||
ac_add_options --disable-tests
|
||||
@@ -0,0 +1,44 @@
|
||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
DOWNLOAD="https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/${BPM_PKG_VERSION//p/-}/librewolf-${BPM_PKG_VERSION//p/-}.source.tar.gz"
|
||||
FILENAME="${DOWNLOAD##*/}"
|
||||
|
||||
# The prepare function is executed in the root of the temp directory
|
||||
# This function is used for downloading files and putting them into the correct location
|
||||
prepare() {
|
||||
wget "$DOWNLOAD"
|
||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||
# Build config based on Arch Linux
|
||||
mv mozconfig "$BPM_SOURCE"
|
||||
}
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
# Fix ICU issues
|
||||
for i in {43..47}; do
|
||||
sed -i '/ZWJ/s/}/,CLASS_CHARACTER&/' intl/lwbrk/LineBreaker.cpp
|
||||
done
|
||||
sed -i 's/icu-i18n/icu-uc &/' js/moz.configure
|
||||
|
||||
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
|
||||
export MOZBUILD_STATE_PATH=${PWD}/mozbuild
|
||||
./mach build
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
|
||||
DESTDIR="$BPM_OUTPUT" ./mach install
|
||||
|
||||
# Install distribution file
|
||||
install -Dm644 ../distribution.ini "$BPM_OUTPUT"/usr/lib/librewolf/distribution/distribution.ini
|
||||
|
||||
# Install librewolf desktop file
|
||||
install -Dm644 ../librewolf.desktop "$BPM_OUTPUT"/usr/share/applications/librewolf.desktop
|
||||
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/librewolf/LICENSE
|
||||
}
|
||||
Reference in New Issue
Block a user