Skip to content
Snippets Groups Projects
Commit bd2da4fc authored by alice's avatar alice
Browse files

community/tidyhtml: build with samurai

parent 2c3970b6
No related merge requests found
......@@ -4,12 +4,12 @@
pkgname=tidyhtml
_pkgreal=tidy-html5
pkgver=5.8.0
pkgrel=1
pkgrel=2
pkgdesc="Tool to tidy down your HTML code to a clean style"
arch=all
url="https://www.html-tidy.org"
license="W3C"
makedepends="cmake libxslt"
makedepends="cmake libxslt samurai"
subpackages="$pkgname-doc $pkgname-static $pkgname-dev $pkgname-libs"
source="tidyhtml-$pkgver.tar.gz::https://github.com/htacg/tidy-html5/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgreal-$pkgver
......@@ -18,13 +18,13 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \
-DSUPPORT_LOCALIZATIONS=OFF \
-DTIDY_CONSOLE_SHARED=ON \
$CMAKE_CROSSOPTS .
$CMAKE_CROSSOPTS
cmake --build build
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment