From f05ba182799f9d93fb9e202e37dce654d902ffd7 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 27 Sep 2011 08:27:40 +0000 Subject: testing/lua-ldoc: new aport Documentation tool for Lua http://github.com/stevedonovan/LDoc --- testing/lua-ldoc/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 testing/lua-ldoc/APKBUILD (limited to 'testing') diff --git a/testing/lua-ldoc/APKBUILD b/testing/lua-ldoc/APKBUILD new file mode 100644 index 000000000..3aa4b63d2 --- /dev/null +++ b/testing/lua-ldoc/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +pkgname=lua-ldoc +pkgver=1.0 +pkgrel=0 +pkgdesc="Documentation tool for Lua" +url="http://github.com/stevedonovan/LDoc" +arch="noarch" +license="MIT" +depends="lua-penlight" +makedepends="lua-dev" +install="" +subpackages= +source="http://stevedonovan.github.com/files/ldoc-$pkgver.zip" + +_luashare=/usr/share/lua/5.1 +_builddir="$srcdir"/LDoc +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 + sed -i '1i \ +#!/usr/bin/env lua' ldoc.lua +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + install -Dm755 ldoc.lua "$pkgdir"/usr/bin/ldoc || return 1 + install -d "$pkgdir"/$_luashare || return 1 + cp -a ldoc "$pkgdir"/$_luashare/ +} + +md5sums="fcfb9afadd49c672f0cb553f490b2455 ldoc-1.0.zip" -- cgit v1.2.3