1 # Maintainer: Frederik Vanrenterghem <frederik@vanrenterghem.biz>
2 pkgname="libhighlight-perl"
5 pkgdesc="Debian's version of libhighlight-perl and highlight-common, for ikiwiki."
7 depends=("boost" "lua52" "perl")
8 source=("https://salsa.debian.org/bremner/highlight/-/archive/debian/${pkgver//_/-}/highlight-debian-${pkgver//_/-}.tar.bz2")
9 #source=("https://sourceforge.net/projects/syntaxhighlight/files/stable/3.41/highlight-3.41.tar.bz2")
10 sha512sums=("c7337350c6d66caaa22699a71be9058702b19b73a53b502d42d2cbdb492b0756d1a8934bb7f4dc169ba3bc6ac94464161fbea898237f460a18f48bf0ba7c5790")
14 cd "highlight-debian-${pkgver//_/-}"
21 PERL_LIB_LOCATION=`/usr/bin/perl -e 'use Config; print substr($Config{vendorarch}, 1);'`
22 mkdir -p "${pkgdir}/usr/share/highlight/langDefs/"
23 mkdir -p "${pkgdir}/usr/share/highlight/themes/"
24 mkdir -p "${pkgdir}/etc/highlight/"
25 mkdir -p "${pkgdir}/${PERL_LIB_LOCATION}/auto/highlight/"
26 mkdir -p "${pkgdir}/${PERL_LIB_LOCATION}/"
27 cp "highlight-debian-${pkgver//_/-}/filetypes.conf" "${pkgdir}/etc/highlight/"
28 cp "highlight-debian-${pkgver//_/-}/themes/"* "${pkgdir}/usr/share/highlight/themes/"
29 cp "highlight-debian-${pkgver//_/-}/langDefs/"* "${pkgdir}/usr/share/highlight/langDefs/"
30 cp "highlight-debian-${pkgver//_/-}/extras/swig/highlight.so" "${pkgdir}/${PERL_LIB_LOCATION}/auto/highlight/"
31 cp "highlight-debian-${pkgver//_/-}/extras/swig/highlight.pm" "${pkgdir}/${PERL_LIB_LOCATION}/"