[arch-commits] Commit in luaposix/trunk (PKGBUILD)
Sébastien Luttringer
seblu at nymeria.archlinux.org
Sat Jun 22 16:58:47 UTC 2013
Date: Saturday, June 22, 2013 @ 18:58:47
Author: seblu
Revision: 93033
upgpkg: luaposix 5.1.28-1
Modified:
luaposix/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++--------------
1 file changed, 21 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-06-22 14:02:45 UTC (rev 93032)
+++ PKGBUILD 2013-06-22 16:58:47 UTC (rev 93033)
@@ -6,31 +6,38 @@
pkgbase=luaposix
pkgname=('lua-posix' 'lua51-posix')
-pkgver=5.1.23
-pkgrel=2
+pkgver=5.1.28
+pkgrel=1
pkgdesc='A POSIX library for Lua programming language'
arch=('i686' 'x86_64')
-url='http://luaforge.net/projects/luaposix/'
+url='https://github.com/luaposix/luaposix'
license=('GPL' 'LGPL')
-makedepends=('lua' 'lua51' 'lua51-bitop')
+makedepends=('lua' 'lua51' 'lua51-bitop' 'git')
options=('!libtool')
-source=("https://github.com/downloads/$pkgbase/$pkgbase/$pkgbase-$pkgver.tar.gz")
-md5sums=('ebe7d335741ca736e003a6844a0fbf92')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/luaposix/luaposix/archive/v$pkgver.tar.gz")
+md5sums=('0ea20ea21bd9f92b79041beb6d41393e')
+prepare() {
+ # do bootstrap in prepare, as it clone external git
+ (cd $pkgbase-$pkgver && ./bootstrap)
+ cp -r $pkgbase-$pkgver $pkgbase-$pkgver-51
+}
+
build() {
+ msg2 'Build with lua 5.2'
cd $pkgbase-$pkgver
- mkdir build_51 build_52
- msg2 'Build with lua 5.2'
- cd build_52
- ../configure \
+ ./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
msg2 'Build with lua 5.1'
- cd ../build_51
- ../configure CFLAGS=-I/usr/include/lua5.1 \
+ cd "$srcdir/$pkgbase-$pkgver-51"
+ ./configure \
+ LUA=/usr/bin/lua5.1 \
+ LUA_INCLUDE=-I/usr/include/lua5.1 \
--prefix=/usr \
--libdir=/usr/lib/lua/5.1 \
--datadir=/usr/share/lua/5.1 \
@@ -41,7 +48,7 @@
package_lua-posix() {
depends=('lua')
- cd $pkgbase-$pkgver/build_52
+ cd $pkgbase-$pkgver
make DESTDIR="$pkgdir/" install
}
@@ -50,7 +57,7 @@
conflicts=('luaposix')
replaces=('luaposix')
- cd $pkgbase-$pkgver/build_51
+ cd $pkgbase-$pkgver-51
make DESTDIR="$pkgdir/" install
}
More information about the arch-commits
mailing list