update: downgrade librewolf to fix package issues

This commit is contained in:
ngn 2024-08-22 00:09:59 +03:00
parent 1a34b2eabb
commit 57a3a9420c
4 changed files with 39 additions and 7 deletions

View File

@ -2,3 +2,4 @@ NAME="desktop"
MAINTAINER="ngn" MAINTAINER="ngn"
PUBKEY="F9E70878C2FB389AEC2BA34CA3654DF5AD9F641D" PUBKEY="F9E70878C2FB389AEC2BA34CA3654DF5AD9F641D"
SRCDIR="src" SRCDIR="src"
IGNORE=("librewolf")

View File

@ -1,5 +1,5 @@
# 129.0.1-1 # 120.0-1
Updated to the latest upstream release Updated to a newer upstream release
# 118.0.1-1 # 118.0.1-1
First version First version

View File

@ -1,14 +1,16 @@
NAME="librewolf" NAME="librewolf"
DESC="LibreWolf is a custom and independent version of Firefox, with the primary goals of privacy, security and user freedom" DESC="LibreWolf is a custom and independent version of Firefox, with the primary goals of privacy, security and user freedom"
VERSION="129.0.1-1" VERSION="120.0-1"
FILES=( FILES=(
"https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/${VERSION}/librewolf-${VERSION}.source.tar.gz" "https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/${VERSION}/librewolf-${VERSION}.source.tar.gz"
"with-icu-74-fix.patch"
"librewolf.desktop" "librewolf.desktop"
"mozconfig" "mozconfig"
) )
HASHES=( HASHES=(
"0ec41d7fc79bc64aa303fc6a4b362f0fc8b8c3be6266252540bae6382b0bd8d75a07760c6e8c23a6064801393ea111b7015e385204bf96129b43e8c4991ed688" "9654cf9ee9083193b5e4311c136735c23a834cba740fc65dd7da72c790119283"
"be296d7c5ad66144ebbca4656b548728eb4917a91c5f1e2d8dbc665b60cebd07"
"d1d4fb76689405df792bdb1130be471f3ed6090c4fed634dfc1365c1495fb637" "d1d4fb76689405df792bdb1130be471f3ed6090c4fed634dfc1365c1495fb637"
"80b09c546c037994d6b022e0a9075c3c165d6790a0ee35fdb67ac6dc8fc2bc84" "80b09c546c037994d6b022e0a9075c3c165d6790a0ee35fdb67ac6dc8fc2bc84"
) )
@ -30,12 +32,14 @@ PACKAGE() {
tar xf "${NAME}-${VERSION}.source.tar.gz" tar xf "${NAME}-${VERSION}.source.tar.gz"
cd "${NAME}-${VERSION}" cd "${NAME}-${VERSION}"
patch -Np1 -i "../with-icu-74-fix.patch"
cp "${ROOTDIR}/mozconfig" . cp "${ROOTDIR}/mozconfig" .
export MOZ_DEBUG_FLAGS=" " export CFLAGS+=" -g0"
export CFLAGS+=" -g0 -std=gnu89" export CXXFLAGS+=" -g0"
export CXXFLAGS+=" -g0 -std=gnu89"
export RUSTFLAGS="-Cdebuginfo=0" export RUSTFLAGS="-Cdebuginfo=0"
export MOZ_DEBUG_FLAGS=" "
export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
export MOZBUILD_STATE_PATH="${PWD}/mozbuild" export MOZBUILD_STATE_PATH="${PWD}/mozbuild"

View File

@ -0,0 +1,27 @@
--- a/intl/lwbrk/LineBreaker.cpp
+++ b/intl/lwbrk/LineBreaker.cpp
@@ -443,17 +443,23 @@ static int8_t GetClass(uint32_t u, LineB
/* JT = 34, [JT] */ CLASS_CHARACTER,
/* JV = 35, [JV] */ CLASS_CHARACTER,
/* CLOSE_PARENTHESIS = 36, [CP] */ CLASS_CLOSE_LIKE_CHARACTER,
/* CONDITIONAL_JAPANESE_STARTER = 37, [CJ] */ CLASS_CLOSE,
/* HEBREW_LETTER = 38, [HL] */ CLASS_CHARACTER,
/* REGIONAL_INDICATOR = 39, [RI] */ CLASS_CHARACTER,
/* E_BASE = 40, [EB] */ CLASS_BREAKABLE,
/* E_MODIFIER = 41, [EM] */ CLASS_CHARACTER,
- /* ZWJ = 42, [ZWJ]*/ CLASS_CHARACTER};
+ /* ZWJ = 42, [ZWJ]*/ CLASS_CHARACTER,
+ /* AKSARA = 43, [AK] */ CLASS_CHARACTER,
+ /* AKSARA_PREBASE = 44, [AP] */ CLASS_CHARACTER,
+ /* AKSARA_START = 45, [AS] */ CLASS_CHARACTER,
+ /* VIRAMA_FINAL = 46, [VF] */ CLASS_CHARACTER,
+ /* VIRAMA = 47, [VI] */ CLASS_CHARACTER,
+ };
static_assert(U_LB_COUNT == mozilla::ArrayLength(sUnicodeLineBreakToClass),
"Gecko vs ICU LineBreak class mismatch");
auto cls = GetLineBreakClass(u);
MOZ_ASSERT(cls < mozilla::ArrayLength(sUnicodeLineBreakToClass));
// Overrides based on rules for the different line-break values given in