blob: f35d4c4966906a254e23d8c4c88c53bc9624c22e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# 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.6.0
pkgrel=0
pkgdesc="Tool to tidy down your HTML code to a clean style"
arch=all
url="http://www.html-tidy.org"
license="custom"
depends=
makedepends="cmake"
subpackages="$pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/htacg/tidy-html5/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgreal-$pkgver
build(){
cd "$builddir"
cmake CMakeLists.txt \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DSUPPORT_LOCALIZATIONS=OFF \
-DTIDY_CONSOLE_SHARED=ON
make
}
check() {
"$builddir"/tidy --help > /dev/null
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="179088a6dbd29bb0e4f0219222f755b186145495f7414f6d0e178803ab67140391283d35352d946f9790c6b1b5b462ee6e24f1cc84f19391cb9b65e73979ffd1 tidyhtml-5.6.0.tar.gz"
|