OCaml 4.14.0 rebuild
[arch-packages.git] / litehtml / trunk / PKGBUILD
blob8a6830e5ebf3f8467de5d37b38cc81fbe67c53d1
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=litehtml
4 pkgver=0.6
5 pkgrel=2
6 pkgdesc='Fast and lightweight HTML/CSS rendering engine'
7 url='http://www.litehtml.com/'
8 arch=(x86_64)
9 license=(BSD)
10 depends=(gumbo-parser gcc-libs)
11 makedepends=(cmake)
12 source=(https://github.com/litehtml/litehtml/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
13 sha256sums=('d8ef26218d5dd7c622d9d42cbc233c0e26baf56d069df2dbe65cc5c0a6d38861')
15 build() {
16   cmake -B build -S $pkgname-$pkgver \
17     -DCMAKE_INSTALL_PREFIX=/usr \
18     -DEXTERNAL_GUMBO=ON \
19     -DLITEHTML_UTF8=ON \
20     -DBUILD_SHARED_LIBS=ON \
21     -DBUILD_TESTING=OFF
22   cmake --build build
25 package() {
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