mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
- Add libxslt to generate man-page. - Clarify license and modernize. - Add static subpackage.
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
|
|
pkgname=tidyhtml
|
|
_pkgreal=tidy-html5
|
|
pkgver=5.8.0
|
|
pkgrel=0
|
|
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"
|
|
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
|
|
|
|
build() {
|
|
if [ "$CBUILD" != "$CHOST" ]; then
|
|
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
|
fi
|
|
cmake -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_SHARED_LIBS=True \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DSUPPORT_LOCALIZATIONS=OFF \
|
|
-DTIDY_CONSOLE_SHARED=ON \
|
|
$CMAKE_CROSSOPTS .
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
./tidy --help > /dev/null
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
22eb063ff6fc3f41a42b5ecba1dcac74dca99f6a2181f54c7ef41720aaaa31d3463d1c28837e7eb8fded3f7e43caf1e1649537aa5eb1ed1b206680cd39bbeba8 tidyhtml-5.8.0.tar.gz
|
|
"
|