summaryrefslogtreecommitdiff
path: root/community/luaposix
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-12 02:49:40 -0800
committerroot <root@rshg054.dnsready.net>2012-12-12 02:49:40 -0800
commit6768c115af3c5f0772bcf7b02f34a88a880876c0 (patch)
treecf59712968581c230363f5604ad8f253cc0b5d87 /community/luaposix
parentab94338181959432cf0046ce0a9643307dab9366 (diff)
Wed Dec 12 02:43:53 PST 2012
Diffstat (limited to 'community/luaposix')
-rw-r--r--community/luaposix/PKGBUILD56
1 files changed, 36 insertions, 20 deletions
diff --git a/community/luaposix/PKGBUILD b/community/luaposix/PKGBUILD
index 627158879..124408cb5 100644
--- a/community/luaposix/PKGBUILD
+++ b/community/luaposix/PKGBUILD
@@ -1,41 +1,57 @@
-# $Id: PKGBUILD 77213 2012-10-07 01:13:25Z seblu $
+# $Id: PKGBUILD 81118 2012-12-12 00:49:30Z eric $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: Laszlo Papp <djszapi at archlinux us>
# Contributor: Donald Ephraim Curtis <dcurtis@gmail.com>
-pkgname=luaposix
+pkgbase=luaposix
+pkgname=('lua-posix' 'lua51-posix')
pkgver=5.1.23
pkgrel=1
pkgdesc='A POSIX library for Lua programming language'
arch=('i686' 'x86_64')
url='http://luaforge.net/projects/luaposix/'
license=('GPL' 'LGPL')
-depends=('lua' 'luabitop')
-#checkdepends=('lunit')
+makedepends=('lua' 'lua51' 'lua51-bitop')
+conflicts=('luaposix')
+replaces=('luaposix')
options=('!libtool')
-source=("https://github.com/downloads/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz")
+source=("https://github.com/downloads/$pkgbase/$pkgbase/$pkgbase-$pkgver.tar.gz")
md5sums=('ebe7d335741ca736e003a6844a0fbf92')
build() {
- cd $pkgname-$pkgver
- ./configure --prefix=/usr \
- --libdir=/usr/lib/lua/5.1 \
- --datadir=/usr/share/lua/5.1
+ cd $pkgbase-$pkgver
+ mkdir build_51 build_52
+ msg2 'Build with lua 5.2'
+ cd build_52
+ ../configure \
+ --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 \
+ --prefix=/usr \
+ --libdir=/usr/lib/lua/5.1 \
+ --datadir=/usr/share/lua/5.1 \
+ --docdir=/usr/share/doc/lua51-posix
+ make
+}
+
+package_lua-posix() {
+ depends=('lua')
+
+ cd $pkgbase-$pkgver/build_52
+ make DESTDIR="$pkgdir/" install
}
-#check() {
-# cd $pkgname-$pkgver
-# make check
-#}
+package_lua51-posix() {
+ depends=('lua51' 'lua51-bitop')
-package() {
- cd $pkgname-$pkgver
- make PREFIX=/usr DESTDIR="$pkgdir/" install
- # examples
- install -d "$pkgdir/usr/share/$pkgname/examples"
- install -D -m 644 *.lua "$pkgdir/usr/share/$pkgname/examples"
+ cd $pkgbase-$pkgver/build_51
+ make DESTDIR="$pkgdir/" install
}
-# vim:set ts=2 sw=2 ft=sh et:
+# vim:set ts=2 sw=2 et: