38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'highlight'
|
|
pkgname=highlight
|
|
version=3.54
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
make_cmd="make QMAKE=qmake"
|
|
hostmakedepends="pkg-config qt-qmake swig perl"
|
|
makedepends="boost-devel lua-devel perl"
|
|
short_desc="Fast and flexible source code highlighter (CLI version)"
|
|
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://www.andre-simon.de/doku/highlight/en/highlight.php"
|
|
distfiles="http://www.andre-simon.de/zip/${pkgname}-${version}.tar.bz2"
|
|
checksum=8a50a85e94061b53085c6ad8cf110039217dbdd411ab846f9ff934bec7ecd6d0
|
|
conf_files="/etc/highlight/filetypes.conf"
|
|
|
|
pre_build() {
|
|
make -C extras/swig perl "CXX=$CXX -fPIC -lperl $LDFLAGS"
|
|
}
|
|
|
|
do_check() {
|
|
# No check target, fails spetarcularly when asked
|
|
:
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/share/doc/highlight/extras
|
|
}
|
|
|
|
highlight-perl_package() {
|
|
short_desc+=" - perl module"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmkdir usr/lib/perl5/vendor_perl/auto/highlight
|
|
vinstall extras/swig/highlight.so 755 usr/lib/perl5/vendor_perl/auto/highlight
|
|
vinstall extras/swig/highlight.pm 644 usr/lib/perl5/vendor_perl
|
|
}
|
|
}
|