This commit is contained in:
xiota 2024-05-18 06:24:53 +00:00
parent f5b0ef00bb
commit 79104fc288
2 changed files with 34 additions and 9 deletions

View file

@ -1,7 +1,7 @@
pkgbase = floorp
pkgdesc = Firefox-based web browser focused on performance and customizability
pkgver = 11.12.2
pkgrel = 2
pkgver = 11.13.0
pkgrel = 1
url = https://github.com/Floorp-Projects/Floorp
arch = x86_64
license = MPL-2.0
@ -23,7 +23,7 @@ pkgbase = floorp
makedepends = nodejs
makedepends = python
makedepends = python-setuptools
makedepends = rust
makedepends = rustup
makedepends = unzip
makedepends = wasi-compiler-rt
makedepends = wasi-libc
@ -55,22 +55,28 @@ pkgbase = floorp
optdepends = networkmanager: Location detection via available WiFi networks
optdepends = speech-dispatcher: Text-to-Speech
optdepends = xdg-desktop-portal: Screensharing with Wayland
provides = floorp=11.12.2
provides = floorp=11.13.0
conflicts = floorp
options = !debug
options = !emptydirs
options = !lto
options = !makeflags
options = !strip
source = Floorp::git+https://github.com/Floorp-Projects/Floorp.git#tag=v11.12.2
source = Floorp::git+https://github.com/Floorp-Projects/Floorp.git#tag=v11.13.0
source = floorp-projects.floorp-core::git+https://github.com/Floorp-Projects/Floorp-core.git
source = floorp-projects.unified-l10n-central::git+https://github.com/Floorp-Projects/Unified-l10n-central.git
source = floorp.desktop
source = 18d19413472f-24a6ea8.patch::https://aur.archlinux.org/cgit/aur.git/plain/18d19413472f.patch?h=firefox-esr&id=24a6ea8
source = 6af7194e2778-24a6ea8.patch::https://aur.archlinux.org/cgit/aur.git/plain/6af7194e2778.patch?h=firefox-esr&id=24a6ea8
source = b1cc62489fae-24a6ea8.patch::https://aur.archlinux.org/cgit/aur.git/plain/b1cc62489fae.patch?h=firefox-esr&id=24a6ea8
source = floorp-projects.private-components::git+https://github.com/Floorp-Projects/Floorp-private-components.git
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = 07a63f189beaafe731237afed0aac3e1cfd489e432841bd2a61daa42977fb273
sha256sums = 3cc55401ed5e027f1b9e667b0b52296af11f3c5c62b4a80b7e55cda0e117ed18
sha256sums = 6952f93889acb514e3b06e251ea901df88c39b429da9677cd5547d90a8b6c73e
sha256sums = f66a944fa8804c16b1f7bd9b42b18bfc2552a891adc148085f4b91685e8db117
sha256sums = SKIP
pkgname = floorp

View file

@ -16,8 +16,8 @@
## basic info
_pkgname="floorp"
pkgname="$_pkgname"
pkgver=11.12.2
pkgrel=2
pkgver=11.13.0
pkgrel=1
pkgdesc="Firefox-based web browser focused on performance and customizability"
url="https://github.com/Floorp-Projects/Floorp"
arch=('x86_64')
@ -61,7 +61,7 @@ _main_package() {
nodejs
python
python-setuptools
rust
rustup
unzip
wasi-compiler-rt
wasi-libc
@ -103,19 +103,28 @@ _main_package() {
!strip
)
_patch_commit="24a6ea8"
_pkgsrc="Floorp"
source=(
"$_pkgsrc"::"git+https://github.com/Floorp-Projects/Floorp.git#tag=v$pkgver"
"floorp-projects.floorp-core"::"git+https://github.com/Floorp-Projects/Floorp-core.git"
"floorp-projects.unified-l10n-central"::"git+https://github.com/Floorp-Projects/Unified-l10n-central.git"
"$_pkgname.desktop"
)
"18d19413472f-$_patch_commit.patch"::"https://aur.archlinux.org/cgit/aur.git/plain/18d19413472f.patch?h=firefox-esr&id=$_patch_commit"
"6af7194e2778-$_patch_commit.patch"::"https://aur.archlinux.org/cgit/aur.git/plain/6af7194e2778.patch?h=firefox-esr&id=$_patch_commit"
"b1cc62489fae-$_patch_commit.patch"::"https://aur.archlinux.org/cgit/aur.git/plain/b1cc62489fae.patch?h=firefox-esr&id=$_patch_commit"
)
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
'07a63f189beaafe731237afed0aac3e1cfd489e432841bd2a61daa42977fb273'
'3cc55401ed5e027f1b9e667b0b52296af11f3c5c62b4a80b7e55cda0e117ed18'
'6952f93889acb514e3b06e251ea901df88c39b429da9677cd5547d90a8b6c73e'
'f66a944fa8804c16b1f7bd9b42b18bfc2552a891adc148085f4b91685e8db117'
)
if [[ "${_build_private::1}" == "t" ]]; then
@ -259,11 +268,17 @@ END
ac_add_options --enable-private-components
END
fi
patch -Np1 -F100 -i "$srcdir/18d19413472f-$_patch_commit.patch"
patch -Np1 -F100 -i "$srcdir/6af7194e2778-$_patch_commit.patch"
patch -Np1 -F100 -i "$srcdir/b1cc62489fae-$_patch_commit.patch"
}
build() {
cd "$_pkgsrc"
export RUSTUP_TOOLCHAIN=1.77
export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$srcdir/xdg-runtime}"
[ ! -d "$XDG_RUNTIME_DIR" ] && install -dm700 "${XDG_RUNTIME_DIR:?}"
@ -274,6 +289,10 @@ build() {
export MOZ_BUILD_DATE="$(date -u${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH} +%Y%m%d%H%M%S)"
export MOZ_NOSPAM=1
# malloc_usable_size is used in various parts of the codebase
CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
# LTO/PGO needs more open files
ulimit -n 4096