archrelease: copy trunk to extra-x86_64
[arch-packages.git] / litehtml / trunk / PKGBUILD
blob1a232d21b68e95a763728cdc2002713f135807bb
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=litehtml
4 pkgver=0.7
5 pkgrel=1
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=('4f561dfa616d7fefb732fe9f40d4da9f0ec3925456ea42346d8aa10e946ef7ba')
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