void-packages/srcpkgs/tidy5/template

55 lines
1.3 KiB
Bash
Raw Normal View History

2015-06-29 11:41:27 +00:00
# Template file for 'tidy5'
# This project has an identity crisis, it's "Tidy",
# "HTML Tidy" and "Tidy HTML5". Binaries are tidy5.
pkgname=tidy5
_reponame=tidy-html5
2015-07-02 13:36:39 +00:00
version=4.9.36
2015-06-29 11:41:27 +00:00
revision=1
wrksrc=${_reponame}-${version}
build_style=cmake
cmake_builddir=build/cmake
hostmakedepends="cmake libxslt"
short_desc="HTML Tidy with HTML5 support"
maintainer="beefcurtains <beefcurtains@voidlinux.eu>"
license="W3C"
homepage="http://www.htacg.org/${_reponame}/"
distfiles="https://github.com/htacg/${_reponame}/archive/${version}.tar.gz"
2015-07-02 13:36:39 +00:00
checksum=687ae85d52e9f368b3d74031b13fa4f346f77c1c7a50e6507a1db3792778d522
2015-06-29 13:30:25 +00:00
pre_configure() {
# the $(man) target requires tidy5 to run on the host
ln -s ${cmake_builddir}/${pkgname}
if [ -n "$CROSS_BUILD" ]; then
rm ${pkgname}
cd ${cmake_builddir}
env - PATH=/usr/bin cmake -DBUILD_SHARED_LIB:BOOL=FALSE ${wrksrc}
make ${makejobs} ${pkgname}
cp ${pkgname} ${wrksrc}
cd ${wrksrc}
rm -rf ${cmake_builddir}
fi
}
2015-06-29 11:41:27 +00:00
post_install() {
vlicense LICENSE.txt LICENSE
}
libtidy5_package() {
short_desc+=" - library files"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libtidy5-devel_package() {
depends="libtidy5>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}