aboutsummaryrefslogtreecommitdiffstats
path: root/main/highlight/APKBUILD
blob: eaca465ffdde54dcd82ca435ac826a4eb73eeaed (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=highlight
pkgver=3.18
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-dev boost-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.andre-simon.de/zip/highlight-$pkgver.tar.bz2
	lua5.1-compat.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
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" -name '*.la' -delete
}

md5sums="085d7639a7e05a0d41923a889dc801c9  highlight-3.18.tar.bz2
2450274893ceaa7288ae3ce3c680540d  lua5.1-compat.patch"
sha256sums="55c6f7a5aeaac2c811078a0215b27c1c80d971bba5dff51ee74a97b3303a584b  highlight-3.18.tar.bz2
2d907c2c8a62cf18e11b780ab51a63907df628fecab8f3072e752c2843b4169f  lua5.1-compat.patch"
sha512sums="1f939e117209e96d021216addc281ca7f265822f053f577ed7cb11b8ac9a1762bf84f8e1f9f5e67277004573b98e4b8732f48549aa674fe6801bfc1c0627b930  highlight-3.18.tar.bz2
e2b4d01bc1483149fdabb3a5d6fc9d146f433bb61ef987e0377b751bde8fcb6a80d09f47d3d6cae6c45add11ef82ce9088eee750d68e84b42b3cbbdf7970b701  lua5.1-compat.patch"