summaryrefslogtreecommitdiffstats
path: root/testing/lua5.2-filesystem/APKBUILD
blob: 7e038cd26d08ee3565f9c12518bbe0563a6a5542 (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: Natanael Copa <ncopa@alpinelinux.org>
_luaver=5.2
pkgname=lua${_luaver}-filesystem
pkgver=1.6.2
pkgrel=0
pkgdesc="functions related to file systems for Lua $_luaver"
url="http://www.keplerproject.org/luafilesystem/"
arch="all"
license="GPL"
depends=
makedepends="lua${_luaver}-dev"
install=
subpackages=
source="https://github.com/downloads/keplerproject/luafilesystem/luafilesystem-$pkgver.tar.gz"

_builddir="$srcdir"/luafilesystem-$pkgver
prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	make CFLAGS="$CFLAGS $( pkg-config lua${_luaver} --cflags ) -fPIC" \
		|| return 1
}

package() {
	cd "$_builddir"
	make LUA_LIBDIR="$pkgdir"/usr/lib/lua/${_luaver} install
}

md5sums="4e7ec93678c760c4e42cea7d28aafa13  luafilesystem-1.6.2.tar.gz"