aports/testing/litehtml/APKBUILD
Bart Ribbers 44ce39a091 */*: remove unnecessary --output-on-failure
We set OUTPUT_ON_FAILURE by default nowadays so this argument is
unnecessary
2025-03-19 15:41:30 +00:00

47 lines
1.4 KiB
Text

# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=litehtml
pkgver=0.9
pkgrel=2
pkgdesc="Fast and lightweight HTML/CSS rendering engine"
url="http://www.litehtml.com/"
arch="all"
license="BSD-3-Clause"
makedepends="cmake samurai gumbo-parser-dev"
checkdepends="gtest-dev"
subpackages="$pkgname-static $pkgname-dev"
source="https://github.com/litehtml/litehtml/archive/v$pkgver/litehtml-$pkgver.tar.gz
fix-gtest-check.patch
"
build() {
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DEXTERNAL_GUMBO=ON \
-DEXTERNAL_GTEST=ON \
-DBUILD_SHARED_LIBS=ON \
-DLITEHTML_BUILD_TESTING="$(want_check && echo ON || echo OFF)"
cmake -B build-static -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DEXTERNAL_GUMBO=ON \
-DLITEHTML_BUILD_TESTING=OFF
cmake --build build
cmake --build build-static
}
check() {
ctest --test-dir build
}
package() {
DESTDIR="$pkgdir" cmake --install build
DESTDIR="$pkgdir" cmake --install build-static
}
sha512sums="
2a156671b770a6a20ab00184d9869af779248dd1fb898930b3b479ee88d8b7d84f51fdbd689ae4124530ab70c8697b6641cf06b220631ce4fec4622e63845ea3 litehtml-0.9.tar.gz
dd4d42b85a90ecb76e7d95d450e99ffce120a0032fd73196fc06835105bae8f3b3b294743e29d4f177ec363e99ebf1ae7e265e39d656ce9180244d2aafe45e3c fix-gtest-check.patch
"