blob: 7198b89640203eb2616db3a11ae33c26039f02d8 (
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
|
# 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 \
--build=$CBUILD \
--host=$CHOST \
--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"
|