void-packages/srcpkgs/tidy5/template

57 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
2015-11-25 09:20:37 +00:00
version=5.1.25
2015-06-29 11:41:27 +00:00
revision=1
2015-11-25 09:20:37 +00:00
_reponame=tidy-html5
2015-06-29 11:41:27 +00:00
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-11-25 09:20:37 +00:00
checksum=be81e967537984fbd207b4b19d02e7be73cbf201f07bf55aa5560c9b1d19b106
2015-06-29 13:30:25 +00:00
pre_configure() {
# the $(man) target requires tidy5 to run on the host
2015-11-25 09:20:37 +00:00
ln -s ${cmake_builddir}/tidy
2015-06-29 13:30:25 +00:00
if [ -n "$CROSS_BUILD" ]; then
2015-11-25 09:23:56 +00:00
rm -f tidy
2015-06-29 13:30:25 +00:00
cd ${cmake_builddir}
env - PATH=/usr/bin cmake -DBUILD_SHARED_LIB:BOOL=FALSE ${wrksrc}
2015-11-25 09:26:50 +00:00
make ${makejobs} tidy
2015-06-29 13:30:25 +00:00
2015-11-25 09:20:37 +00:00
cp tidy ${wrksrc}
2015-06-29 13:30:25 +00:00
cd ${wrksrc}
rm -rf ${cmake_builddir}
fi
}
2015-06-29 11:41:27 +00:00
post_install() {
2015-11-25 09:20:37 +00:00
vlicense README/LICENSE.txt LICENSE
mv ${DESTDIR}/usr/bin/tidy{,5}
mv ${DESTDIR}/usr/share/man/man1/tidy{,5}.1
2015-06-29 11:41:27 +00:00
}
libtidy5_package() {
short_desc+=" - library files"
pkg_install() {
2015-11-25 09:20:37 +00:00
vmove usr/lib/*.so.*
2015-06-29 11:41:27 +00:00
}
}
libtidy5-devel_package() {
depends="libtidy5>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
2015-11-25 09:20:37 +00:00
vmove usr/lib/*.a
vmove usr/lib/*.so
2015-06-29 11:41:27 +00:00
}
}