aboutsummaryrefslogtreecommitdiffstats
path: root/main/highlight/APKBUILD
blob: 6d7c917876d77855b5dd2da05671ba05dff6b4b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaver=5.3
pkgname=highlight
pkgver=3.22
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
	find "$pkgdir" -name '*.la' -delete
}

md5sums="6e6e12b7ee966fe6b1a31eeda3f0761a  highlight-3.22.tar.bz2
3169160e55414c91c749a6c6a17ff531  lua-pkg-config.patch"
sha256sums="4776ce4305e6f92d8a9faf5d0aeffd56f413ad57e55303e7a2a6357387ec056f  highlight-3.22.tar.bz2
21ffdda3c4c6ad949f214a406267955b968cc2efdcd366d5ad4334264e81b817  lua-pkg-config.patch"
sha512sums="9b5d0b46ab99f48baa2756c0f819434b2c01ceadd276a6d16939e0949fcdd8fddedf6c21ff8421b715ffae2d2c88f2b07357c5062124f83bcfe8dcca9c62ab07  highlight-3.22.tar.bz2
57913ebff939568fcb984ad40f3124391543bdaea4e5f018e98d28dda95b2d3cf17e88ba32b573ae4428cd70c4dce1d0c2338c40e00c546c432c633bda0180bf  lua-pkg-config.patch"