[arch-commits] Commit in (lua-posix lua-posix/trunk/PKGBUILD luaposix)

Alexander Rødseth arodseth at nymeria.archlinux.org
Mon May 26 13:28:36 UTC 2014


    Date: Monday, May 26, 2014 @ 15:28:36
  Author: arodseth
Revision: 111893

Rename from luaposix to lua-posix. No longer a split package.

Also trying to make it build again.

Added:
  lua-posix/
Modified:
  lua-posix/trunk/PKGBUILD
Deleted:
  luaposix/

----------+
 PKGBUILD |   71 +++++++++++++++++++++----------------------------------------
 1 file changed, 25 insertions(+), 46 deletions(-)

Modified: lua-posix/trunk/PKGBUILD
===================================================================
--- luaposix/trunk/PKGBUILD	2014-05-26 12:15:04 UTC (rev 111890)
+++ lua-posix/trunk/PKGBUILD	2014-05-26 13:28:36 UTC (rev 111893)
@@ -1,42 +1,39 @@
 # $Id$
-# Maintainer: Sébastien Luttringer
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Sébastien Luttringer
 # Contributor: SpepS <dreamspepser at yahoo dot it>
 # Contributor: Laszlo Papp <djszapi at archlinux us>
 # Contributor: Donald Ephraim Curtis <dcurtis at gmail.com>
 
-pkgbase=luaposix
-pkgname=('lua-posix' 'lua51-posix')
+pkgname=lua-posix
 pkgver=31
 pkgrel=1
-pkgdesc='A POSIX library for Lua programming language'
-arch=('i686' 'x86_64')
+pkgdesc='POSIX library for Lua'
+arch=('x86_64' 'i686')
 url='https://github.com/luaposix/luaposix'
 license=('GPL' 'LGPL')
-makedepends=('lua' 'lua51' 'lua51-bitop' 'git' 'help2man')
+depends=('lua')
+makedepends=('lua' 'git' 'help2man')
 options=('!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')
+source=("$pkgname::git://github.com/luaposix/luaposix.git#tag=v$pkgver")
+#        'git://git.sv.gnu.org/gnulib'
+#        'git://github.com/gvvaughan/slingshot')
+md5sums=('SKIP')
 
 prepare() {
-  # 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
+  cd "$pkgname"
+
+#  for _deplib in gnulib slingshot; do
+#    rm -r "$_deplib"
+#    ln -s "$srcdir/$_rep" "$_deplib"
+#  done
+
+  ./bootstrap
 }
 
 build() {
-  msg2 'Build with lua 5.2'
-  cd $pkgbase-$pkgver
+  cd "$pkgname"
+
   ./configure \
       LUA=/usr/bin/lua \
       --prefix=/usr \
@@ -44,32 +41,14 @@
       --datadir=/usr/share/lua/5.2 \
       --docdir=/usr/share/doc/lua-posix
   make
-  msg2 'Build with lua 5.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 \
-      --docdir=/usr/share/doc/lua51-posix
-  make
 }
 
-package_lua-posix() {
-  depends=('lua')
-
-  cd $pkgbase-$pkgver
-  make DESTDIR="$pkgdir/" install
+check() {
+  make -C "$pkgname" check
 }
 
-package_lua51-posix() {
-  depends=('lua51' 'lua51-bitop')
-  conflicts=('luaposix')
-  replaces=('luaposix')
-
-  cd $pkgbase-$pkgver-51
-  make DESTDIR="$pkgdir/" install
+package() {
+  make -C "$pkgname" DESTDIR="$pkgdir" install
 }
 
 # vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list