aboutsummaryrefslogtreecommitdiffstats
path: root/main/highlight/APKBUILD
blob: da2328d0cd8a8c232b7e0a4bf4f46f3f4fa8e720 (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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=highlight
pkgver=3.19
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="b20643085d2727cc8221aaf9db5f2ade  highlight-3.19.tar.bz2
2450274893ceaa7288ae3ce3c680540d  lua5.1-compat.patch"
sha256sums="3b6e85ce81bf3212ae3c4500efdb831667e4748ffb9258eb24027b90f9da2fa3  highlight-3.19.tar.bz2
2d907c2c8a62cf18e11b780ab51a63907df628fecab8f3072e752c2843b4169f  lua5.1-compat.patch"
sha512sums="ea232a4c7801650ff27e6e59dc5c47aa230c47bc1189c56b44f1147da6d3aa855b1ab18e8b53a0b5f68aebf99c5cb00ed8f15c595aa5eb4c672e3759c27b76d4  highlight-3.19.tar.bz2
e2b4d01bc1483149fdabb3a5d6fc9d146f433bb61ef987e0377b751bde8fcb6a80d09f47d3d6cae6c45add11ef82ce9088eee750d68e84b42b3cbbdf7970b701  lua5.1-compat.patch"