From 6768c115af3c5f0772bcf7b02f34a88a880876c0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Dec 2012 02:49:40 -0800 Subject: Wed Dec 12 02:43:53 PST 2012 --- community/luaposix/PKGBUILD | 56 +++++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 20 deletions(-) (limited to 'community/luaposix') 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 # Contributor: SpepS # Contributor: Laszlo Papp # Contributor: Donald Ephraim Curtis -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: -- cgit v1.2.3-54-g00ecf