# Contributor: Carlo Landmeter # Maintainer: Natanael Copa _luaver=5.3 pkgname=highlight pkgver=3.29 pkgrel=0 pkgdesc="Fast and flexible source code highlighter" url="http://www.andre-simon.de/doku/highlight/highlight.html" arch="all" license="GPLv3" depends="" depends_dev="" makedepends="$depends_dev lua${_luaver}-dev boost-dev" install="" subpackages="$pkgname-doc" source="http://www.andre-simon.de/zip/highlight-$pkgver.tar.bz2 lua-pkg-config.patch " _builddir="$srcdir"/highlight-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" make cli LUAPC=lua${_luaver} } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } md5sums="660908ef08bf0cd32663f3e228e8d160 highlight-3.29.tar.bz2 3169160e55414c91c749a6c6a17ff531 lua-pkg-config.patch" sha256sums="76cc769d98778985235c0b7d1345cff78c99f597b51edd4e9be7d3fc0160bf92 highlight-3.29.tar.bz2 21ffdda3c4c6ad949f214a406267955b968cc2efdcd366d5ad4334264e81b817 lua-pkg-config.patch" sha512sums="e17d780741ab64fbcf174100db3890dc1b8d5c41494901e1c01f1039177baabaa1fefeb72d30afa8723cb84f2cbb873378afcdfe8e8beba2e845c6abcec14ac9 highlight-3.29.tar.bz2 57913ebff939568fcb984ad40f3124391543bdaea4e5f018e98d28dda95b2d3cf17e88ba32b573ae4428cd70c4dce1d0c2338c40e00c546c432c633bda0180bf lua-pkg-config.patch"