summaryrefslogtreecommitdiffstats
path: root/main/lua-stdlib/APKBUILD
blob: b7bf1b684ae2b1e38a2a5bafb0d5e2b28c622127 (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
# Maintainer: Natnae
pkgname=lua-stdlib
pkgver=26
pkgrel=0
pkgdesc="Lua library of modules for common programming tasks"
url="http://luaforge.net/projects/stdlib/"
arch="noarch"
license="MIT/X"
depends=
makedepends="lua-dev"
install=
subpackages="$pkgname-doc"
source="https://github.com/downloads/rrthomas/lua-stdlib/stdlib-$pkgver.zip"

_builddir="$srcdir"/stdlib-$pkgver
_luashare=/usr/share/lua/5.1
build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--datadir="$_luashare" \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname || return 1
	cd "$_builddir"/src
	cp -r files modules index.html "$pkgdir"/usr/share/doc/$pkgname/
}

md5sums="2f916405400dab91274db4ff50798d01  stdlib-26.zip"