diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-12-12 09:40:29 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-12-12 09:40:29 -0300 |
commit | eef796260fb7cc9b81044e43df8f313c3c8e768a (patch) | |
tree | db6c6a07c0da415fe2e68648fbd39473cba2ccd2 /community/luaposix | |
parent | 6767b6bbf9829a692c85c3dcd5ee0280982bd252 (diff) | |
parent | ef947957a5734ba25be3cdb6595491c816592133 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/btanks/PKGBUILD
community/highlight/PKGBUILD
community/luaexpat/PKGBUILD
community/luakit/PKGBUILD
community/luasec/PKGBUILD
community/luasocket/PKGBUILD
extra/graphviz/PKGBUILD
extra/gvfs/PKGBUILD
extra/lua/PKGBUILD
extra/openal/PKGBUILD
extra/sane/PKGBUILD
extra/vim/PKGBUILD
extra/vlc/PKGBUILD
Diffstat (limited to 'community/luaposix')
-rw-r--r-- | community/luaposix/PKGBUILD | 56 |
1 files changed, 36 insertions, 20 deletions
diff --git a/community/luaposix/PKGBUILD b/community/luaposix/PKGBUILD index d81969ca7..fce0bdcff 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' 'mips64el') 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: |