--- /dev/null
+# Maintainer: Frederik Vanrenterghem <frederik@vanrenterghem.biz>
+pkgname="libhighlight-perl"
+pkgver="3.41_2"
+pkgrel="1"
+pkgdesc="Debian's version of libhighlight-perl and highlight-common, for ikiwiki."
+arch=("x86_64")
+depends=("boost" "lua52" "perl")
+source=("https://salsa.debian.org/bremner/highlight/-/archive/debian/${pkgver//_/-}/highlight-debian-${pkgver//_/-}.tar.bz2")
+#source=("https://sourceforge.net/projects/syntaxhighlight/files/stable/3.41/highlight-3.41.tar.bz2")
+sha512sums=("c7337350c6d66caaa22699a71be9058702b19b73a53b502d42d2cbdb492b0756d1a8934bb7f4dc169ba3bc6ac94464161fbea898237f460a18f48bf0ba7c5790")
+noextract=()
+
+build() {
+ cd "highlight-debian-${pkgver//_/-}"
+ make
+ cd "extras/swig"
+ make perl
+}
+
+package() {
+ PERL_LIB_LOCATION=`/usr/bin/perl -e 'use Config; print substr($Config{vendorarch}, 1);'`
+ mkdir -p "${pkgdir}/usr/share/highlight/langDefs/"
+ mkdir -p "${pkgdir}/usr/share/highlight/themes/"
+ mkdir -p "${pkgdir}/etc/highlight/"
+ mkdir -p "${pkgdir}/${PERL_LIB_LOCATION}/auto/highlight/"
+ mkdir -p "${pkgdir}/${PERL_LIB_LOCATION}/"
+ cp "highlight-debian-${pkgver//_/-}/filetypes.conf" "${pkgdir}/etc/highlight/"
+ cp "highlight-debian-${pkgver//_/-}/themes/"* "${pkgdir}/usr/share/highlight/themes/"
+ cp "highlight-debian-${pkgver//_/-}/langDefs/"* "${pkgdir}/usr/share/highlight/langDefs/"
+ cp "highlight-debian-${pkgver//_/-}/extras/swig/highlight.so" "${pkgdir}/${PERL_LIB_LOCATION}/auto/highlight/"
+ cp "highlight-debian-${pkgver//_/-}/extras/swig/highlight.pm" "${pkgdir}/${PERL_LIB_LOCATION}/"
+}