summaryrefslogtreecommitdiff
path: root/community/lua-posix/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/lua-posix/PKGBUILD')
-rw-r--r--community/lua-posix/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/lua-posix/PKGBUILD b/community/lua-posix/PKGBUILD
new file mode 100644
index 000000000..d52cbac75
--- /dev/null
+++ b/community/lua-posix/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 111919 2014-05-26 15:44:44Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Sébastien Luttringer
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Contributor: Laszlo Papp <djszapi at archlinux us>
+# Contributor: Donald Ephraim Curtis <dcurtis@gmail.com>
+
+pkgname=lua-posix
+pkgver=31
+pkgrel=2
+pkgdesc='POSIX library for Lua'
+arch=('x86_64' 'i686')
+url='https://github.com/luaposix/luaposix'
+license=('GPL' 'LGPL')
+depends=('lua')
+makedepends=('lua' 'git' 'help2man')
+options=('!makeflags')
+source=("$pkgname::git://github.com/luaposix/luaposix.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cd "$pkgname"
+
+ ./bootstrap
+}
+
+build() {
+ cd "$pkgname"
+
+ ./configure \
+ LUA=/usr/bin/lua \
+ --prefix=/usr \
+ --libdir=/usr/lib/lua/5.2 \
+ --datadir=/usr/share/lua/5.2 \
+ --docdir=/usr/share/doc/lua-posix
+ make
+}
+
+check() {
+ make -C "$pkgname" check || true
+}
+
+package() {
+ make -C "$pkgname" DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et: