# Contributor: Carlo Landmeter # Maintainer: Natanael Copa _luaver=5.3 pkgname=highlight pkgver=3.28 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="05f75d4fb18a401181e658dcaf8ff562 highlight-3.28.tar.bz2 3169160e55414c91c749a6c6a17ff531 lua-pkg-config.patch" sha256sums="36364b6d906148dac04426a0c892fe2343e5e2c752316666589f8dff741ce7cd highlight-3.28.tar.bz2 21ffdda3c4c6ad949f214a406267955b968cc2efdcd366d5ad4334264e81b817 lua-pkg-config.patch" sha512sums="f0d5d9b4635da5fcf75ba5fd11cbb308c0e8c00b8bdaff5769b7e0c2756d8e0b34b46299eaf4396b99bba69562bec96757342e0187abcf7a52277e37dff9b1fd highlight-3.28.tar.bz2 57913ebff939568fcb984ad40f3124391543bdaea4e5f018e98d28dda95b2d3cf17e88ba32b573ae4428cd70c4dce1d0c2338c40e00c546c432c633bda0180bf lua-pkg-config.patch"