first commit

This commit is contained in:
ngn
2024-08-11 02:17:03 +03:00
commit ee34792885
1404 changed files with 13564 additions and 0 deletions

3
src/librewolf/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/librewolf/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 118.0.1-1
First version

View File

@ -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=GNOME;GTK;Network;WebBrowser;
MimeType=text/xml;text/mml;text/html;application/xhtml+xml;application/vnd.mozilla.xul+xml;x-scheme-handler/http;x-scheme-handler/https
StartupNotify=true

25
src/librewolf/mozconfig Normal file
View File

@ -0,0 +1,25 @@
ac_add_options --disable-necko-wifi
ac_add_options --with-system-icu
ac_add_options --with-system-libevent
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 --disable-debug-symbols
ac_add_options --disable-elf-hack
ac_add_options --prefix=/usr
ac_add_options --enable-application=browser
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman
ac_add_options --with-system-jpeg
ac_add_options --with-system-png
ac_add_options --with-system-zlib
ac_add_options --without-wasm-sandboxed-libraries
ac_add_options --with-app-name=librewolf
ac_add_options --enable-update-channel=release
unset MOZ_TELEMETRY_REPORTING
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir

42
src/librewolf/pkg.sh Normal file
View File

@ -0,0 +1,42 @@
NAME="librewolf"
DESC="LibreWolf is a custom and independent version of Firefox, with the primary goals of privacy, security and user freedom"
VERSION="118.0.1-1"
FILES=(
"https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/$VERSION/librewolf-$VERSION.source.tar.gz"
"librewolf.desktop"
"mozconfig"
)
HASHES=(
"d972169a6b9d2e1df6a74fcf6d2e048c29e85bec3fba98cbe272e0d508fb2392"
"d1d4fb76689405df792bdb1130be471f3ed6090c4fed634dfc1365c1495fb637"
"80b09c546c037994d6b022e0a9075c3c165d6790a0ee35fdb67ac6dc8fc2bc84"
)
DEPENDS=(
"dbus" "dbus-glib" "gtk3" "ffmpeg" "pulseaudio"
"nss" "libevent" "libvpx" "libwebp" "icu"
"liboauth" "pciutils" "wireless-tools"
"startup-notification" "libnotify"
)
PACKAGE() {
tar xf $NAME-$VERSION.source.tar.gz
cd $NAME-$VERSION
cp "$ROOTDIR/mozconfig" .
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
export MOZBUILD_STATE_PATH=${PWD}/mozbuild
./mach configure
./mach build
MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none DESTDIR="$ROOTDIR" ./mach install
unset MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE MOZBUILD_STATE_PATH
mkdir -pv "$ROOTDIR/usr/share/applications"
mkdir -pv "$ROOTDIR/usr/share/pixmaps"
cp "$ROOTDIR/librewolf.desktop" "$ROOTDIR/usr/share/applications/librewolf.desktop"
ln -sfv /usr/lib/librewolf/browser/chrome/icons/default/default128.png \
"$ROOTDIR/usr/share/pixmaps/librewolf.png"
cd .. && rm -r $NAME-$VERSION
}