void-packages/srcpkgs/source-highlight/template
jbu c2bfc6b7d5 bandwith / download times + $GNU_SITE cleanup
+ To reduce bandwidth and download times, packages use bz2/lzma/xz where possible.
+ Also use ${GNU_SITE} and ${KERNEL_SITE} where appropriate.
+ Clean up xlint warnings.
+ inetutils: update to 1.9.3 and split into subpkgs
2015-05-22 11:47:56 +02:00

41 lines
1.1 KiB
Bash

# Template file for 'source-highlight'
pkgname=source-highlight
version=3.1.8
revision=2
build_style=gnu-configure
configure_args="--with-boost=${XBPS_CROSS_BASE}/usr
--with-bash-completion=/usr/share/bash-completion/completions"
makedepends="boost-devel"
short_desc="Convert source code to syntax highlighted document"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://www.gnu.org/software/src-highlite/"
distfiles="${GNU_SITE}/src-highlite/$pkgname-$version.tar.gz"
checksum=01336a7ea1d1ccc374201f7b81ffa94d0aecb33afc7d6903ebf9fbf33a55ada3
if [ "$CROSS_BUILD" ]; then
hostmakedepends="source-highlight"
fi
post_configure() {
if [ "$CROSS_BUILD" ]; then
sed -e 's,SRCHILITEEXE =.*,SRCHILITEEXE = source-highlight,g' -i doc/Makefile
fi
}
libsource-highlight_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
source-highlight-devel_package() {
short_desc+=" - development files"
depends="libsource-highlight>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}