From: Frederik Vanrenterghem Date: Mon, 12 Jun 2023 05:30:13 +0000 (+0800) Subject: Initial Arch package for ikiwiki. X-Git-Url: http://git.vanrenterghem.biz/Arch/libhighlight-perl.git/commitdiff_plain/HEAD Initial Arch package for ikiwiki. --- 7e81b04cb80357156d53bbfb8a66483dbea35861 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3035660 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Frederik Vanrenterghem +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}/" +}