aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ldoc/APKBUILD
blob: e42481215d930abbe77934dd6db28565cf9458ec (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaver=5.2
pkgname=ldoc
pkgver=1.3.13
pkgrel=0
pkgdesc="Documentation tool for Lua"
url="http://github.com/stevedonovan/LDoc"
arch="noarch"
license="MIT"
depends="lua$_luaver-penlight lua$_luaver"
makedepends=""
install=""
subpackages=
source="http://stevedonovan.github.com/files/ldoc-$pkgver.zip"

_luashare=/usr/share/lua/$_luaver
_builddir="$srcdir"/ldoc
prepare() {
	local i
	cd "$_builddir" || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	sed -i "1s:.*:#!/usr/bin/lua$_luaver:" ldoc.lua
}

build() {
	cd "$_builddir"
	find -type d | xargs chmod 755
}

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="f0b47e6d91ec1692491b05ba0d16cda4  ldoc-1.3.13.zip"
sha256sums="ba65c5351085635a3dffc17aacd0cfc3279d534d51db8ae6537b97aea71d0d20  ldoc-1.3.13.zip"
sha512sums="e5796692cdeba86687c398580f18e06f7d7afd53f040907d6d8ecc879a9136f59efcfc4d69af80562f22e1f76da449b2a765c6f295b0207c35c5403df4245936  ldoc-1.3.13.zip"