1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
6 pkgdesc='Fast and lightweight HTML/CSS rendering engine'
7 url='http://www.litehtml.com/'
10 depends=(gumbo-parser gcc-libs)
12 source=(https://github.com/litehtml/litehtml/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
13 sha256sums=('4f561dfa616d7fefb732fe9f40d4da9f0ec3925456ea42346d8aa10e946ef7ba')
16 cmake -B build -S $pkgname-$pkgver \
17 -DCMAKE_INSTALL_PREFIX=/usr \
20 -DBUILD_SHARED_LIBS=ON \
26 DESTDIR="$pkgdir" cmake --install build
27 install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
28 # Don't search for non-existant gumbo cmake config
29 sed -e '/gumbo/d' -i "$pkgdir"/usr/lib/cmake/litehtml/litehtmlConfig.cmake