summaryrefslogtreecommitdiff
path: root/community/luaposix/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/luaposix/PKGBUILD')
-rw-r--r--community/luaposix/PKGBUILD25
1 files changed, 18 insertions, 7 deletions
diff --git a/community/luaposix/PKGBUILD b/community/luaposix/PKGBUILD
index e937311b8..d6111b0dc 100644
--- a/community/luaposix/PKGBUILD
+++ b/community/luaposix/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 93201 2013-06-28 13:21:16Z seblu $
+# $Id: PKGBUILD 98865 2013-10-20 20:53:15Z seblu $
# Maintainer: Sébastien Luttringer
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Laszlo Papp <djszapi at archlinux us>
@@ -6,20 +6,31 @@
pkgbase=luaposix
pkgname=('lua-posix' 'lua51-posix')
-pkgver=29
+pkgver=31
pkgrel=1
pkgdesc='A POSIX library for Lua programming language'
arch=('i686' 'x86_64')
url='https://github.com/luaposix/luaposix'
license=('GPL' 'LGPL')
-makedepends=('lua' 'lua51' 'lua51-bitop' 'git')
-options=('!libtool')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/luaposix/luaposix/archive/v$pkgver.tar.gz")
-md5sums=('5c3e49c51caeee6eb5f9dcb2bb082bed')
+makedepends=('lua' 'lua51' 'lua51-bitop' 'git' 'help2man')
+options=('!libtool' '!makeflags')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/$pkgbase/$pkgbase/archive/v$pkgver.tar.gz"
+ 'git+git://git.sv.gnu.org/gnulib'
+ 'git+git://github.com/gvvaughan/slingshot')
+md5sums=('7b17b9a3f25d9658de967c6bfd50c138'
+ 'SKIP'
+ 'SKIP')
prepare() {
- # do bootstrap in prepare, as it clone external git
+ # replace git submodules by source one.
+ # this allow us to cache and avoid clone each time
+ for _rep in gnulib slingshot; do
+ rmdir $pkgbase-$pkgver/$_rep
+ ln -s "$srcdir/$_rep" $pkgbase-$pkgver/$_rep
+ done
+ # bootstraping
(cd $pkgbase-$pkgver && ./bootstrap)
+ # copy source for lua 5.1 build
cp -r $pkgbase-$pkgver $pkgbase-$pkgver-51
}