summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkj-sh6042025-06-01 19:16:30 -0400
committerkj-sh6042025-06-01 19:16:30 -0400
commitd86fa02c0b36ba136b2494c8eb1df43c879c7065 (patch)
tree8d615536641eb1483363e05713e800067e1f17b8
parente0156dc5e36862da37df411d26707312a0390279 (diff)
feat: add self-managed `ladybird`
-rw-r--r--ladybird-kj_sh604/.SRCINFO35
-rw-r--r--ladybird-kj_sh604/.gitignore5
-rw-r--r--ladybird-kj_sh604/PKGBUILD50
-rw-r--r--ladybird-kj_sh604/ladybird.desktop10
4 files changed, 100 insertions, 0 deletions
diff --git a/ladybird-kj_sh604/.SRCINFO b/ladybird-kj_sh604/.SRCINFO
new file mode 100644
index 0000000..318a972
--- /dev/null
+++ b/ladybird-kj_sh604/.SRCINFO
@@ -0,0 +1,35 @@
+pkgbase = ladybird-kj_sh604
+ pkgdesc = Truly independent web browser (personally maintained by: kj_sh604)
+ pkgver = 20250601
+ pkgrel = 1
+ url = https://github.com/LadybirdBrowser/ladybird
+ arch = x86_64
+ license = BSD-2-Clause
+ makedepends = autoconf-archive
+ makedepends = automake
+ makedepends = cmake
+ makedepends = git
+ makedepends = nasm
+ makedepends = ninja
+ makedepends = tar
+ makedepends = unzip
+ makedepends = zip
+ depends = curl
+ depends = ffmpeg
+ depends = libgl
+ depends = qt6-base
+ depends = qt6-multimedia
+ depends = qt6-tools
+ depends = qt6-wayland
+ depends = ttf-liberation
+ options = !lto
+ options = !debug
+ options = !buildflags
+ source = git+https://github.com/LadybirdBrowser/ladybird#commit=417f4edc463ae35d5073dbcfa5bd43972c32bd69
+ source = git+https://github.com/microsoft/vcpkg.git#commit=89dc8be6dbcf18482a5a1bf86a2f4615c939b0fb
+ source = ladybird.desktop
+ sha256sums = db7cc522a771c5574dc0f575b142498671a544a62c5ef97cccd129fde04eb25a
+ sha256sums = 3dfa3dc80da40483565a55180c8fa6fd9d4af2354bd1c7b38de5daecf6085a20
+ sha256sums = c83838259b1b8cf1c7118b706286c99977223439bbcc056694e2952708bf2350
+
+pkgname = ladybird-kj_sh604
diff --git a/ladybird-kj_sh604/.gitignore b/ladybird-kj_sh604/.gitignore
new file mode 100644
index 0000000..bd66f63
--- /dev/null
+++ b/ladybird-kj_sh604/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+ladybird/
+vcpkg/
+*.tar*
diff --git a/ladybird-kj_sh604/PKGBUILD b/ladybird-kj_sh604/PKGBUILD
new file mode 100644
index 0000000..033e20b
--- /dev/null
+++ b/ladybird-kj_sh604/PKGBUILD
@@ -0,0 +1,50 @@
+pkgname=ladybird-kj_sh604
+pkgver=20250601
+pkgrel=1
+pkgdesc='Truly independent web browser (personally maintained by: kj_sh604)'
+arch=(x86_64)
+url='https://github.com/LadybirdBrowser/ladybird'
+license=(BSD-2-Clause)
+depends=(curl ffmpeg libgl qt6-base qt6-multimedia qt6-tools qt6-wayland ttf-liberation)
+makedepends=(autoconf-archive automake cmake git nasm ninja tar unzip zip)
+options=('!lto' '!debug' '!buildflags')
+source=(
+ "git+$url#commit=417f4edc463ae35d5073dbcfa5bd43972c32bd69" # 2025-06-01
+ "git+https://github.com/microsoft/vcpkg.git#commit=89dc8be6dbcf18482a5a1bf86a2f4615c939b0fb" # 2025-06-01 (Toolchain/BuildVcpkg.py)
+ "ladybird.desktop"
+)
+sha256sums=('db7cc522a771c5574dc0f575b142498671a544a62c5ef97cccd129fde04eb25a'
+ '3dfa3dc80da40483565a55180c8fa6fd9d4af2354bd1c7b38de5daecf6085a20'
+ 'c83838259b1b8cf1c7118b706286c99977223439bbcc056694e2952708bf2350')
+
+build() {
+ cd "${srcdir}"
+
+ export VCPKG_ROOT="${srcdir}/vcpkg"
+ export VCPKG_DISABLE_METRICS="true"
+
+ cmake \
+ --preset default \
+ -B build \
+ -S ladybird \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DVCPKG_OVERLAY_TRIPLETS="${srcdir}/ladybird/Meta/CMake/vcpkg/distribution-triplets" \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" \
+ -DENABLE_INSTALL_HEADERS=OFF \
+ -GNinja \
+ -Wno-dev
+ ninja -C build
+}
+
+package() {
+ cd "${srcdir}"
+
+ DESTDIR="${pkgdir}" ninja -C build install
+
+ install -Dm644 "ladybird.desktop" "${pkgdir}/usr/share/applications/${pkgname%-kj_sh604}.desktop"
+ install -Dm644 "ladybird/Base/res/icons/128x128/app-browser.png" "${pkgdir}/usr/share/pixmaps/ladybird.png"
+
+ install -Dm644 ladybird/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname%-kj_sh604}/"
+}
diff --git a/ladybird-kj_sh604/ladybird.desktop b/ladybird-kj_sh604/ladybird.desktop
new file mode 100644
index 0000000..96a445a
--- /dev/null
+++ b/ladybird-kj_sh604/ladybird.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Ladybird
+Comment=Web browser built from scratch using the SerenityOS LibWeb engine
+Exec=Ladybird
+Icon=ladybird
+Terminal=false
+StartupNotify=false
+Categories=Application;Network;