diff options
Diffstat (limited to 'main/highlight/APKBUILD')
-rw-r--r-- | main/highlight/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/main/highlight/APKBUILD b/main/highlight/APKBUILD new file mode 100644 index 0000000000..eaca465ffd --- /dev/null +++ b/main/highlight/APKBUILD @@ -0,0 +1,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" |