Created
November 26, 2022 20:16
-
-
Save ADKaster/eaf585c5aee1a00c84015c04e0e5d97a to your computer and use it in GitHub Desktop.
ladybird PKGBUILD 2022-11-26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## WIP | |
# Contributor: Francesco Gazzetta <https://github.com/fgaz> | |
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/ladybird/default.nix | |
# Updated from: https://github.com/yochananmarqos/pkgbuilds/blob/6ddaae174e97c4b803cab71ece4d5743a76b9d3f/ladybird/PKGBUILD | |
pkgname=ladybird | |
pkgver=r190.175cfac | |
pkgrel=1 | |
pkgdesc="A browser using the SerenityOS LibWeb engine with a Qt GUI." | |
arch=('x86_64') | |
url="https://github.com/SerenityOS/ladybird" | |
license=('BSD') | |
depends=('libgl' 'qt6-base' 'qt6-wayland') | |
makedepends=('cmake' 'git' 'ninja' 'qt6-tools' 'unzip') | |
optdepends=() | |
options=('!lto') | |
#_commit=d69ad7332477de33bfd1963026e057d55c6f222d | |
_commit=175cfaca9e5b5b326ef9ee3ce4717e161fe5f14e | |
#_serenity_commit=a0f3e2c9a2b82117aa7c1a3444ad0d31baa070d5 | |
_serenity_commit=f3763a527592fae56401e8f8461d644ddc172d05 | |
source=("git+https://github.com/SerenityOS/ladybird.git#commit=$_commit" | |
"git+https://github.com/SerenityOS/serenity.git#commit=$_serenity_commit") | |
sha256sums=('SKIP' | |
'SKIP') | |
pkgver() { | |
cd "$srcdir/$pkgname" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
## TODO | |
# prevent static lib mangling with LTO | |
# CFLAGS+=" -ffat-lto-objects" | |
# CXXFLAGS+=" -ffat-lto-objects" | |
# -DBUILD_SHARED_LIBS='OFF' \ | |
# -DENABLE_TIME_ZONE_DATABASE_DOWNLOAD='false' \ | |
# -DENABLE_UNICODE_DATABASE_DOWNLOAD='false' \ | |
cmake -GNinja -B build -S "$pkgname" \ | |
-DCMAKE_BUILD_TYPE='None' \ | |
-DCMAKE_INSTALL_PREFIX='/usr' \ | |
-DSERENITY_SOURCE_DIR="$srcdir/serenity" \ | |
-Wno-dev | |
ninja -C build | |
} | |
package() { | |
DESTDIR="$pkgdir" ninja install -C build | |
cd "$srcdir/$pkgname" | |
install -Dm644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment