blob: ec5ced00cea1b25b99bf05fd6bf875213f6ac9fe (
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.4.3
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="LDoc-$pkgver.tar.gz::https://github.com/stevedonovan/LDoc/archive/$pkgver.tar.gz"
_luashare=/usr/share/lua/$_luaver
_builddir="$srcdir"/LDoc-$pkgver
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="eda6879140dce9435f5a264ef970a205 LDoc-1.4.3.tar.gz"
sha256sums="002af28553238bdf5f1aa85653f3aedb377f43c34152f5eb3c448dd036573bd4 LDoc-1.4.3.tar.gz"
sha512sums="fa720eb5ded0c189b4f67696a0fb5cf181f9d8983f1ce6ecede9a437fbb0fe0f00cb17755b39036d4291b4a7d0e437fbddbf39d32620accd7377880278c58751 LDoc-1.4.3.tar.gz"
|