aboutsummaryrefslogtreecommitdiffstats
path: root/main/highlight/APKBUILD
blob: 6a559d798cbfac62b664dfd7f8b86595a6c304e3 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=highlight
pkgver=3.21
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 lua5.2-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=lua5.2
}

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

md5sums="122cd432e84f0b29aed172435af31aed  highlight-3.21.tar.bz2
515af7c72fb3e19b2625ce24d77cf016  lua-pkg-config.patch"
sha256sums="0e4e80a56709ba6397b30efa4923c4ec3fbb700e9ee07da67494965f11351bf0  highlight-3.21.tar.bz2
7102d9803c9342db1d62e31eef44e5ddb11029bb2d0e2889355f604325ae1270  lua-pkg-config.patch"
sha512sums="71f1a5804dee4220101c09f7a26c4a09683580cc59949eab5bec8ede91370d2f3535148bae03fdd6f0224e8e69b646f9d7a614c2ffdab43ef8032b7158d80833  highlight-3.21.tar.bz2
c4f9c6296887cc3aeaa3cc1428da819193bfa083772b045768623b9e97fe2e36c56330b970638d94d6c7c05f3423dc849551a8f0f98f5515214acd2e4f5400b5  lua-pkg-config.patch"