aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-stdlib/APKBUILD
blob: f9115674ef9a97d75acb3dcdbfb8b60ef41457ab (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=24
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="http://luaforge.net/frs/download.php/4847/lua-stdlib-24.zip"

_builddir="$srcdir"/lua-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="f768ac3b793e8498e20906d19bf2ef48  lua-stdlib-24.zip"