[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2020-08-02 Thread Daurnimator via arch-commits
Date: Sunday, August 2, 2020 @ 11:25:49
  Author: daurnimator
Revision: 667615

upgpkg: luasocket 20200329-1

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-08-02 11:04:14 UTC (rev 667614)
+++ PKGBUILD2020-08-02 11:25:49 UTC (rev 667615)
@@ -3,9 +3,9 @@
 
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket lua52-socket lua53-socket)
-pkgver=20190219
-_commit=144fa01c2f204e3b1b13c834f2644d100dba701b
-pkgrel=3
+pkgver=20200329
+_commit=5b18e475f38fcf28429b1cc4b17baee3b9793a62
+pkgrel=1
 pkgdesc='Networking support library for the Lua language'
 arch=('x86_64')
 url='https://github.com/diegonehab/luasocket'


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2020-07-05 Thread Daurnimator via arch-commits
Date: Sunday, July 5, 2020 @ 12:15:48
  Author: daurnimator
Revision: 657817

upgpkg: luasocket 20190219-3: lua package is becoming Lua 5.4

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |   70 +++--
 1 file changed, 31 insertions(+), 39 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-07-05 12:00:08 UTC (rev 657816)
+++ PKGBUILD2020-07-05 12:15:48 UTC (rev 657817)
@@ -2,70 +2,62 @@
 # Contributor: Anders Bergh 
 
 pkgbase=luasocket
-pkgname=(lua-socket lua51-socket lua52-socket)
+pkgname=(lua-socket lua51-socket lua52-socket lua53-socket)
 pkgver=20190219
 _commit=144fa01c2f204e3b1b13c834f2644d100dba701b
-pkgrel=2
+pkgrel=3
 pkgdesc='Networking support library for the Lua language'
 arch=('x86_64')
 url='https://github.com/diegonehab/luasocket'
 license=('MIT')
 #options=('debug')
-makedepends=('lua' 'lua51' 'lua52' 'git')
+makedepends=('lua' 'lua51' 'lua52' 'lua53' 'git')
 source=("git+https://github.com/diegonehab/luasocket.git#commit=${_commit};)
 md5sums=('SKIP')
 
-build() {
+prepare() {
+  cp -a luasocket luasocket-51
   cp -a luasocket luasocket-52
-  cp -a luasocket luasocket-51
+  cp -a luasocket luasocket-53
+}
 
-  msg2 'Building with lua 5.3'
-  cd "$srcdir"/luasocket
-  MYCFLAGS=$CFLAGS MYLDFLAGS=$LDFLAGS make LUAV=5.3 linux
-
-  msg2 'Building with lua 5.1'
+build() {
   cd "$srcdir"/luasocket-51
-  find . -type f -name \*.[ch] -exec sed -i \
--e 's|include "lua.h|include "lua5.1/lua.h|g' \
--e 's|include "lualib.h|include "lua5.1/lualib.h|g' \
--e 's|include "luaconf.h|include "lua5.1/luaconf.h|g' \
--e 's|include "lauxlib.h|include "lua5.1/lauxlib.h|g' \
-{} \;
-  sed -i 's|usocket.$(O)|usocket.$(O) compat.$(O)|' makefile
-  MYCFLAGS=$CFLAGS MYLDFLAGS=$LDFLAGS make LUAV=5.1 linux
+  MYCFLAGS="$CFLAGS" MYLDFLAGS=$LDFLAGS make LUAV=5.1 linux
 
-  msg2 'Building with lua 5.2'
   cd "$srcdir"/luasocket-52
-  find . -type f -name \*.[ch] -exec sed -i \
--e 's|include "lua.h|include "lua5.2/lua.h|g' \
--e 's|include "lualib.h|include "lua5.2/lualib.h|g' \
--e 's|include "luaconf.h|include "lua5.2/luaconf.h|g' \
--e 's|include "lauxlib.h|include "lua5.2/lauxlib.h|g' \
-{} \;
-  MYCFLAGS=$CFLAGS MYLDFLAGS=$LDFLAGS make LUAV=5.2 linux
-}
+  MYCFLAGS="$CFLAGS" MYLDFLAGS=$LDFLAGS make LUAV=5.2 linux
 
-package_lua-socket() {
-  depends=('lua')
-  cd luasocket
-  make DESTDIR="$pkgdir/" LUAV=5.3 prefix=/usr install-unix
-  install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  cd "$srcdir"/luasocket-53
+  MYCFLAGS="$CFLAGS" MYLDFLAGS=$LDFLAGS make LUAV=5.3 linux
+
+  cd "$srcdir"/luasocket
+  MYCFLAGS="$CFLAGS" MYLDFLAGS=$LDFLAGS make LUAV=5.4 linux
 }
 
 package_lua51-socket() {
-  depends=('lua51')
   replaces=('luasocket')
   conflicts=('luasocket')
 
   cd luasocket-51
-  make DESTDIR="$pkgdir/" LUAV=5.1 prefix=/usr install-unix
-  install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  make DESTDIR="$pkgdir" LUAV=5.1 prefix=/usr install-unix
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
 package_lua52-socket() {
-  depends=('lua52')
-
   cd luasocket-52
-  make DESTDIR="$pkgdir/" LUAV=5.2 prefix=/usr install-unix
-  install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  make DESTDIR="$pkgdir" LUAV=5.2 prefix=/usr install-unix
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
+
+package_lua53-socket() {
+  cd luasocket-53
+  make DESTDIR="$pkgdir" LUAV=5.3 prefix=/usr install-unix
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_lua-socket() {
+  cd luasocket
+  make DESTDIR="$pkgdir" LUAV=5.4 prefix=/usr install-unix
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2020-06-30 Thread Evangelos Foutras via arch-commits
Date: Tuesday, June 30, 2020 @ 07:11:08
  Author: foutrelis
Revision: 657087

upgpkg: luasocket 20190219-2: Lua 5.4 rebuild

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-06-30 06:39:32 UTC (rev 657086)
+++ PKGBUILD2020-06-30 07:11:08 UTC (rev 657087)
@@ -5,7 +5,7 @@
 pkgname=(lua-socket lua51-socket lua52-socket)
 pkgver=20190219
 _commit=144fa01c2f204e3b1b13c834f2644d100dba701b
-pkgrel=1
+pkgrel=2
 pkgdesc='Networking support library for the Lua language'
 arch=('x86_64')
 url='https://github.com/diegonehab/luasocket'


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2019-02-25 Thread Sergej Pupykin via arch-commits
Date: Monday, February 25, 2019 @ 08:33:39
  Author: spupykin
Revision: 435659

fix luasocket-debug

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-02-25 08:24:33 UTC (rev 435658)
+++ PKGBUILD2019-02-25 08:33:39 UTC (rev 435659)
@@ -10,6 +10,7 @@
 arch=('x86_64')
 url='https://github.com/diegonehab/luasocket'
 license=('MIT')
+#options=('debug')
 makedepends=('lua' 'lua51' 'lua52' 'git')
 source=("git+https://github.com/diegonehab/luasocket.git#commit=${_commit};)
 md5sums=('SKIP')
@@ -20,7 +21,7 @@
 
   msg2 'Building with lua 5.3'
   cd "$srcdir"/luasocket
-  make LUAV=5.3 linux
+  MYCFLAGS=$CFLAGS MYLDFLAGS=$LDFLAGS make LUAV=5.3 linux
 
   msg2 'Building with lua 5.1'
   cd "$srcdir"/luasocket-51
@@ -31,7 +32,7 @@
 -e 's|include "lauxlib.h|include "lua5.1/lauxlib.h|g' \
 {} \;
   sed -i 's|usocket.$(O)|usocket.$(O) compat.$(O)|' makefile
-  make LUAV=5.1 linux
+  MYCFLAGS=$CFLAGS MYLDFLAGS=$LDFLAGS make LUAV=5.1 linux
 
   msg2 'Building with lua 5.2'
   cd "$srcdir"/luasocket-52
@@ -41,7 +42,7 @@
 -e 's|include "luaconf.h|include "lua5.2/luaconf.h|g' \
 -e 's|include "lauxlib.h|include "lua5.2/lauxlib.h|g' \
 {} \;
-  make LUAV=5.2 linux
+  MYCFLAGS=$CFLAGS MYLDFLAGS=$LDFLAGS make LUAV=5.2 linux
 }
 
 package_lua-socket() {


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2019-02-21 Thread Sergej Pupykin via arch-commits
Date: Thursday, February 21, 2019 @ 15:06:09
  Author: spupykin
Revision: 435105

upgpkg: luasocket 20190219-1

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-02-21 15:03:11 UTC (rev 435104)
+++ PKGBUILD2019-02-21 15:06:09 UTC (rev 435105)
@@ -3,9 +3,9 @@
 
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket lua52-socket)
-pkgver=20160311
-_commit=23ce5aeaa22b49d6649096b520b292a3626474ef
-pkgrel=2
+pkgver=20190219
+_commit=144fa01c2f204e3b1b13c834f2644d100dba701b
+pkgrel=1
 pkgdesc='Networking support library for the Lua language'
 arch=('x86_64')
 url='https://github.com/diegonehab/luasocket'


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2018-11-09 Thread Evangelos Foutras via arch-commits
Date: Saturday, November 10, 2018 @ 00:21:00
  Author: foutrelis
Revision: 405495

PIE/BUILDINFO rebuild

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-11-10 00:20:49 UTC (rev 405494)
+++ PKGBUILD2018-11-10 00:21:00 UTC (rev 405495)
@@ -5,7 +5,7 @@
 pkgname=(lua-socket lua51-socket lua52-socket)
 pkgver=20160311
 _commit=23ce5aeaa22b49d6649096b520b292a3626474ef
-pkgrel=1
+pkgrel=2
 pkgdesc='Networking support library for the Lua language'
 arch=('x86_64')
 url='https://github.com/diegonehab/luasocket'


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2016-03-11 Thread Sergej Pupykin
Date: Friday, March 11, 2016 @ 10:39:35
  Author: spupykin
Revision: 166095

upgpkg: luasocket 20160311-1

upd

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |   12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-03-11 09:37:40 UTC (rev 166094)
+++ PKGBUILD2016-03-11 09:39:35 UTC (rev 166095)
@@ -4,7 +4,8 @@
 
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket lua52-socket)
-pkgver=20151008
+pkgver=20160311
+_commit=23ce5aeaa22b49d6649096b520b292a3626474ef
 pkgrel=1
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
@@ -11,7 +12,7 @@
 url='https://github.com/diegonehab/luasocket'
 license=('MIT')
 makedepends=('lua' 'lua51' 'lua52' 'git')
-source=("git+https://github.com/diegonehab/luasocket.git#commit=d1ec29be7f982db75864155dd61a058902e1cae2;)
+source=("git+https://github.com/diegonehab/luasocket.git#commit=${_commit};)
 md5sums=('SKIP')
 
 build() {
@@ -20,7 +21,7 @@
 
   msg2 'Building with lua 5.3'
   cd "$srcdir"/luasocket
-  make LUAV=5.3
+  make LUAV=5.3 linux
 
   msg2 'Building with lua 5.1'
   cd "$srcdir"/luasocket-51
@@ -30,7 +31,8 @@
 -e 's|include "luaconf.h|include "lua5.1/luaconf.h|g' \
 -e 's|include "lauxlib.h|include "lua5.1/lauxlib.h|g' \
 {} \;
-  make LUAV=5.1
+  sed -i 's|usocket.$(O)|usocket.$(O) compat.$(O)|' makefile
+  make LUAV=5.1 linux
 
   msg2 'Building with lua 5.2'
   cd "$srcdir"/luasocket-52
@@ -40,7 +42,7 @@
 -e 's|include "luaconf.h|include "lua5.2/luaconf.h|g' \
 -e 's|include "lauxlib.h|include "lua5.2/lauxlib.h|g' \
 {} \;
-  make LUAV=5.2
+  make LUAV=5.2 linux
 }
 
 package_lua-socket() {


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2015-10-08 Thread Sergej Pupykin
Date: Thursday, October 8, 2015 @ 13:00:59
  Author: spupykin
Revision: 143417

upgpkg: luasocket 20151008-1

upd

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-10-08 10:43:02 UTC (rev 143416)
+++ PKGBUILD2015-10-08 11:00:59 UTC (rev 143417)
@@ -4,7 +4,7 @@
 
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket lua52-socket)
-pkgver=20151001
+pkgver=20151008
 pkgrel=1
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
@@ -11,7 +11,7 @@
 url='https://github.com/diegonehab/luasocket'
 license=('MIT')
 makedepends=('lua' 'lua51' 'lua52' 'git')
-source=("git+https://github.com/diegonehab/luasocket.git#commit=4110e4125dace9df3a744067066e5dee62670561;)
+source=("git+https://github.com/diegonehab/luasocket.git#commit=d1ec29be7f982db75864155dd61a058902e1cae2;)
 md5sums=('SKIP')
 
 build() {


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2015-10-02 Thread Sergej Pupykin
Date: Friday, October 2, 2015 @ 15:48:29
  Author: spupykin
Revision: 142792

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-10-02 13:17:38 UTC (rev 142791)
+++ PKGBUILD2015-10-02 13:48:29 UTC (rev 142792)
@@ -11,7 +11,7 @@
 url='https://github.com/diegonehab/luasocket'
 license=('MIT')
 makedepends=('lua' 'lua51' 'lua52' 'git')
-source=("git+https://github.com/diegonehab/luasocket.git;)
+source=("git+https://github.com/diegonehab/luasocket.git#commit=4110e4125dace9df3a744067066e5dee62670561;)
 md5sums=('SKIP')
 
 build() {


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2015-10-01 Thread Sergej Pupykin
Date: Thursday, October 1, 2015 @ 21:15:52
  Author: spupykin
Revision: 142720

upgpkg: luasocket 3.0rc1-8

upd

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-10-01 19:15:42 UTC (rev 142719)
+++ PKGBUILD2015-10-01 19:15:52 UTC (rev 142720)
@@ -5,7 +5,7 @@
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket lua52-socket)
 pkgver=3.0rc1
-pkgrel=7
+pkgrel=8
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
 url='https://github.com/diegonehab/luasocket'


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2015-10-01 Thread Sergej Pupykin
Date: Thursday, October 1, 2015 @ 21:21:06
  Author: spupykin
Revision: 142721

upgpkg: luasocket 20151001-1

upd

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |   37 +
 1 file changed, 13 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-10-01 19:15:52 UTC (rev 142720)
+++ PKGBUILD2015-10-01 19:21:06 UTC (rev 142721)
@@ -4,37 +4,26 @@
 
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket lua52-socket)
-pkgver=3.0rc1
-pkgrel=8
+pkgver=20151001
+pkgrel=1
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
 url='https://github.com/diegonehab/luasocket'
 license=('MIT')
-makedepends=('lua' 'lua51' 'lua52')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/diegonehab/luasocket/archive/v${pkgver/rc/-rc}.tar.gz;
-   "https://github.com/diegonehab/luasocket/commit/396e9e5.patch;)
-md5sums=('08bd2f265b244eb4bf5c2c36bf89b759'
- '7936d598ea91632e7dcc7aebc93c7300')
+makedepends=('lua' 'lua51' 'lua52' 'git')
+source=("git+https://github.com/diegonehab/luasocket.git;)
+md5sums=('SKIP')
 
-prepare() {
-  cd "${srcdir}/luasocket-${pkgver/rc/-rc}"
-  patch -p1 < ${srcdir}/396e9e5.patch
-
-  # Partially apply 
https://github.com/diegonehab/luasocket/commit/ddf429282460323e24652e6beec8e750f8e4a958
-  # it replaces deprecated Lua functions.
-  sed 's/\bluaL_checkint\b/(int)luaL_checkinteger/g' -i src/{mime,luasocket}.c
-}
-
 build() {
-  cp -a luasocket-${pkgver/rc/-rc} luasocket-${pkgver/rc/-rc}-52
-  cp -a luasocket-${pkgver/rc/-rc} luasocket-${pkgver/rc/-rc}-51
+  cp -a luasocket luasocket-52
+  cp -a luasocket luasocket-51
 
   msg2 'Building with lua 5.3'
-  cd "$srcdir"/luasocket-${pkgver/rc/-rc}
+  cd "$srcdir"/luasocket
   make LUAV=5.3
 
   msg2 'Building with lua 5.1'
-  cd "$srcdir"/luasocket-${pkgver/rc/-rc}-51
+  cd "$srcdir"/luasocket-51
   find . -type f -name \*.[ch] -exec sed -i \
 -e 's|include "lua.h|include "lua5.1/lua.h|g' \
 -e 's|include "lualib.h|include "lua5.1/lualib.h|g' \
@@ -44,7 +33,7 @@
   make LUAV=5.1
 
   msg2 'Building with lua 5.2'
-  cd "$srcdir"/luasocket-${pkgver/rc/-rc}-52
+  cd "$srcdir"/luasocket-52
   find . -type f -name \*.[ch] -exec sed -i \
 -e 's|include "lua.h|include "lua5.2/lua.h|g' \
 -e 's|include "lualib.h|include "lua5.2/lualib.h|g' \
@@ -56,7 +45,7 @@
 
 package_lua-socket() {
   depends=('lua')
-  cd luasocket-${pkgver/rc/-rc}
+  cd luasocket
   make DESTDIR="$pkgdir/" LUAV=5.3 prefix=/usr install-unix
   install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
@@ -66,7 +55,7 @@
   replaces=('luasocket')
   conflicts=('luasocket')
 
-  cd luasocket-${pkgver/rc/-rc}-51
+  cd luasocket-51
   make DESTDIR="$pkgdir/" LUAV=5.1 prefix=/usr install-unix
   install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
@@ -74,7 +63,7 @@
 package_lua52-socket() {
   depends=('lua52')
 
-  cd luasocket-${pkgver/rc/-rc}-52
+  cd luasocket-52
   make DESTDIR="$pkgdir/" LUAV=5.2 prefix=/usr install-unix
   install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2015-05-17 Thread Anatol Pomozov
Date: Monday, May 18, 2015 @ 05:04:56
  Author: anatolik
Revision: 133683

FS#44999 Fix incompatibility with lua 5.3

Replace deprecated functions with its 5.3 versions.
An upstream commit [1] fixes it but contains a lot of crap (wtf to mix cleanup 
and bugfixes in the same commit?).
Use simple sed to fix issue the same way.

[1] 
https://github.com/diegonehab/luasocket/commit/ddf429282460323e24652e6beec8e750f8e4a958

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-05-18 01:25:13 UTC (rev 133682)
+++ PKGBUILD2015-05-18 03:04:56 UTC (rev 133683)
@@ -5,7 +5,7 @@
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket lua52-socket)
 pkgver=3.0rc1
-pkgrel=6
+pkgrel=7
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
 url='https://github.com/diegonehab/luasocket'
@@ -19,6 +19,10 @@
 prepare() {
   cd ${srcdir}/luasocket-${pkgver/rc/-rc}
   patch -p1  ${srcdir}/396e9e5.patch
+
+  # Partially apply 
https://github.com/diegonehab/luasocket/commit/ddf429282460323e24652e6beec8e750f8e4a958
+  # it replaces deprecated Lua functions.
+  sed 's/\bluaL_checkint\b/(int)luaL_checkinteger/g' -i src/{mime,luasocket}.c
 }
 
 build() {


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2015-05-05 Thread Anatol Pomozov
Date: Tuesday, May 5, 2015 @ 16:59:39
  Author: anatolik
Revision: 132792

upgpkg: luasocket 3.0rc1-6

- use lua5.3 specific dirs for libraries
- add library for lua 5.2

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |   42 +++---
 1 file changed, 31 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-05-05 14:50:24 UTC (rev 132791)
+++ PKGBUILD2015-05-05 14:59:39 UTC (rev 132792)
@@ -3,14 +3,14 @@
 # Contributor: Anders Bergh ande...@gmail.com
 
 pkgbase=luasocket
-pkgname=(lua-socket lua51-socket)
+pkgname=(lua-socket lua51-socket lua52-socket)
 pkgver=3.0rc1
-pkgrel=5
+pkgrel=6
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
 url='https://github.com/diegonehab/luasocket'
 license=('MIT')
-makedepends=('lua' 'lua51')
+makedepends=('lua' 'lua51' 'lua52')
 
source=($pkgbase-$pkgver.tar.gz::https://github.com/diegonehab/luasocket/archive/v${pkgver/rc/-rc}.tar.gz;
https://github.com/diegonehab/luasocket/commit/396e9e5.patch;)
 md5sums=('08bd2f265b244eb4bf5c2c36bf89b759'
@@ -23,12 +23,14 @@
 
 build() {
   cp -a luasocket-${pkgver/rc/-rc} luasocket-${pkgver/rc/-rc}-52
-  msg2 'Building with lua 5.2'
-  pushd luasocket-${pkgver/rc/-rc}-52
-  make LUAV=5.2
-  popd
+  cp -a luasocket-${pkgver/rc/-rc} luasocket-${pkgver/rc/-rc}-51
+
+  msg2 'Building with lua 5.3'
+  cd $srcdir/luasocket-${pkgver/rc/-rc}
+  make LUAV=5.3
+
   msg2 'Building with lua 5.1'
-  cd luasocket-${pkgver/rc/-rc}
+  cd $srcdir/luasocket-${pkgver/rc/-rc}-51
   find . -type f -name \*.[ch] -exec sed -i \
 -e 's|include lua.h|include lua5.1/lua.h|g' \
 -e 's|include lualib.h|include lua5.1/lualib.h|g' \
@@ -36,12 +38,22 @@
 -e 's|include lauxlib.h|include lua5.1/lauxlib.h|g' \
 {} \;
   make LUAV=5.1
+
+  msg2 'Building with lua 5.2'
+  cd $srcdir/luasocket-${pkgver/rc/-rc}-52
+  find . -type f -name \*.[ch] -exec sed -i \
+-e 's|include lua.h|include lua5.2/lua.h|g' \
+-e 's|include lualib.h|include lua5.2/lualib.h|g' \
+-e 's|include luaconf.h|include lua5.2/luaconf.h|g' \
+-e 's|include lauxlib.h|include lua5.2/lauxlib.h|g' \
+{} \;
+  make LUAV=5.2
 }
 
 package_lua-socket() {
   depends=('lua')
-  cd luasocket-${pkgver/rc/-rc}-52
-  make DESTDIR=$pkgdir/ LUAV=5.2 prefix=/usr install-unix
+  cd luasocket-${pkgver/rc/-rc}
+  make DESTDIR=$pkgdir/ LUAV=5.3 prefix=/usr install-unix
   install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
 
@@ -50,7 +62,15 @@
   replaces=('luasocket')
   conflicts=('luasocket')
 
-  cd luasocket-${pkgver/rc/-rc}
+  cd luasocket-${pkgver/rc/-rc}-51
   make DESTDIR=$pkgdir/ LUAV=5.1 prefix=/usr install-unix
   install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
+
+package_lua52-socket() {
+  depends=('lua52')
+
+  cd luasocket-${pkgver/rc/-rc}-52
+  make DESTDIR=$pkgdir/ LUAV=5.2 prefix=/usr install-unix
+  install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2015-05-05 Thread Sergej Pupykin
Date: Tuesday, May 5, 2015 @ 12:51:58
  Author: spupykin
Revision: 132767

upgpkg: luasocket 3.0rc1-5

upd

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-05-05 10:51:53 UTC (rev 132766)
+++ PKGBUILD2015-05-05 10:51:58 UTC (rev 132767)
@@ -5,7 +5,7 @@
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket)
 pkgver=3.0rc1
-pkgrel=4
+pkgrel=5
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
 url='https://github.com/diegonehab/luasocket'


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2015-01-11 Thread Sergej Pupykin
Date: Sunday, January 11, 2015 @ 11:54:32
  Author: spupykin
Revision: 125721

upgpkg: luasocket 3.0rc1-4

upd

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |   13 ++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-01-11 10:31:20 UTC (rev 125720)
+++ PKGBUILD2015-01-11 10:54:32 UTC (rev 125721)
@@ -5,15 +5,22 @@
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket)
 pkgver=3.0rc1
-pkgrel=3
+pkgrel=4
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
 url='https://github.com/diegonehab/luasocket'
 license=('MIT')
 makedepends=('lua' 'lua51')
-source=($pkgname-$pkgver.tar.gz::https://github.com/diegonehab/luasocket/archive/v${pkgver/rc/-rc}.tar.gz;)
-md5sums=('08bd2f265b244eb4bf5c2c36bf89b759')
+source=($pkgname-$pkgver.tar.gz::https://github.com/diegonehab/luasocket/archive/v${pkgver/rc/-rc}.tar.gz;
+   https://github.com/diegonehab/luasocket/commit/396e9e5.patch;)
+md5sums=('08bd2f265b244eb4bf5c2c36bf89b759'
+ '7936d598ea91632e7dcc7aebc93c7300')
 
+prepare() {
+  cd ${srcdir}/luasocket-${pkgver/rc/-rc}
+  patch -p1  ${srcdir}/396e9e5.patch
+}
+
 build() {
   cp -a luasocket-${pkgver/rc/-rc} luasocket-${pkgver/rc/-rc}-52
   msg2 'Building with lua 5.2'


[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2013-10-24 Thread Sergej Pupykin
Date: Thursday, October 24, 2013 @ 11:31:39
  Author: spupykin
Revision: 99082

upgpkg: luasocket 3.0rc1-3

upd

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-24 09:27:16 UTC (rev 99081)
+++ PKGBUILD2013-10-24 09:31:39 UTC (rev 99082)
@@ -5,7 +5,7 @@
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket)
 pkgver=3.0rc1
-pkgrel=2
+pkgrel=3
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
 url='https://github.com/diegonehab/luasocket'
@@ -34,7 +34,7 @@
 package_lua-socket() {
   depends=('lua')
   cd luasocket-${pkgver/rc/-rc}-52
-  make DESTDIR=$pkgdir/ LUAV=5.2 prefix=/usr install
+  make DESTDIR=$pkgdir/ LUAV=5.2 prefix=/usr install-unix
   install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
 
@@ -44,6 +44,6 @@
   conflicts=('luasocket')
 
   cd luasocket-${pkgver/rc/-rc}
-  make DESTDIR=$pkgdir/ LUAV=5.1 prefix=/usr install
+  make DESTDIR=$pkgdir/ LUAV=5.1 prefix=/usr install-unix
   install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }



[arch-commits] Commit in luasocket/trunk (PKGBUILD luasocket-unixsocket.patch)

2013-10-21 Thread Sergej Pupykin
Date: Monday, October 21, 2013 @ 16:00:22
  Author: spupykin
Revision: 98937

upgpkg: luasocket 3.0rc1-1

upd

Modified:
  luasocket/trunk/PKGBUILD
Deleted:
  luasocket/trunk/luasocket-unixsocket.patch

+
 PKGBUILD   |   50 ++-
 luasocket-unixsocket.patch |   33 
 2 files changed, 21 insertions(+), 62 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-21 14:00:19 UTC (rev 98936)
+++ PKGBUILD2013-10-21 14:00:22 UTC (rev 98937)
@@ -3,40 +3,34 @@
 # Contributor: Anders Bergh ande...@gmail.com
 
 pkgbase=luasocket
-pkgname=(lua51-socket)
-pkgver=2.0.2
-pkgrel=5
+pkgname=(lua-socket lua51-socket)
+pkgver=3.0rc1
+pkgrel=1
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
-url='http://www.cs.princeton.edu/~diego/professional/luasocket/'
+url='https://github.com/diegonehab/luasocket'
 license=('MIT')
 makedepends=('lua' 'lua51')
-source=(http://luaforge.net/frs/download.php/2664/luasocket-$pkgver.tar.gz;
-'luasocket-unixsocket.patch')
-md5sums=('41445b138deb7bcfe97bff957503da8e'
- '8d116bb70bd7a2fa15cbe949d4cfc35e')
+source=($pkgname-$pkgver.tar.gz::https://github.com/diegonehab/luasocket/archive/v${pkgver/rc/-rc}.tar.gz;)
+md5sums=('08bd2f265b244eb4bf5c2c36bf89b759')
 
 build() {
-#  cp -a luasocket-$pkgver luasocket-$pkgver-52
-#  msg2 'Building with lua 5.2'
-#  pushd luasocket-$pkgver-52
-#  patch -Np1 -i $srcdir/luasocket-unixsocket.patch
-#  make
-#  popd
+  cp -a luasocket-${pkgver/rc/-rc} luasocket-${pkgver/rc/-rc}-52
+  msg2 'Building with lua 5.2'
+  pushd luasocket-${pkgver/rc/-rc}-52
+  make LUAV=5.2
+  popd
   msg2 'Building with lua 5.1'
-  cd luasocket-$pkgver
-  patch -Np1 -i $srcdir/luasocket-unixsocket.patch
-  make LUAINC=-I/usr/include/lua5.1
+  cd luasocket-${pkgver/rc/-rc}
+  make LUAV=5.1
 }
 
-#package_lua-socket() {
-#  depends=('lua')
-#  cd luasocket-$pkgver-52
-#  make DESTDIR=$pkgdir/ \
-#INSTALL_TOP_SHARE='$(DESTDIR)/usr/share/lua/5.2' \
-#INSTALL_TOP_LIB='$(DESTDIR)/usr/lib/lua/5.2' install
-#  install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
-#}
+package_lua-socket() {
+  depends=('lua')
+  cd luasocket-${pkgver/rc/-rc}-52
+  make DESTDIR=$pkgdir/ LUAV=5.2 prefix=/usr install
+  install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
 
 package_lua51-socket() {
   depends=('lua51')
@@ -43,9 +37,7 @@
   replaces=('luasocket')
   conflicts=('luasocket')
 
-  cd luasocket-$pkgver
-  make DESTDIR=$pkgdir/ \
-INSTALL_TOP_SHARE='$(DESTDIR)/usr/share/lua/5.1' \
-INSTALL_TOP_LIB='$(DESTDIR)/usr/lib/lua/5.1' install
+  cd luasocket-${pkgver/rc/-rc}
+  make DESTDIR=$pkgdir/ LUAV=5.1 prefix=/usr install
   install -D -m0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }

Deleted: luasocket-unixsocket.patch
===
--- luasocket-unixsocket.patch  2013-10-21 14:00:19 UTC (rev 98936)
+++ luasocket-unixsocket.patch  2013-10-21 14:00:22 UTC (rev 98937)
@@ -1,33 +0,0 @@
-diff -wbBur luasocket-2.0.2/makefile luasocket-2.0.2.my/makefile
 luasocket-2.0.2/makefile   2007-10-15 04:21:05.0 +
-+++ luasocket-2.0.2.my/makefile2011-03-09 12:00:54.0 +
-@@ -10,6 +10,8 @@
- INSTALL_SOCKET_LIB=$(INSTALL_TOP_LIB)/socket
- INSTALL_MIME_SHARE=$(INSTALL_TOP_SHARE)/mime
- INSTALL_MIME_LIB=$(INSTALL_TOP_LIB)/mime
-+#
-+INSTALL_UNIX_LIB=$(INSTALL_SOCKET_LIB)
- 
- all clean:
-   cd src; $(MAKE) $@
-@@ -45,6 +47,8 @@
-   #cd src; $(INSTALL_DATA) $(TO_MIME_SHARE) $(INSTALL_MIME_SHARE)
-   cd src; mkdir -p $(INSTALL_MIME_LIB)
-   cd src; $(INSTALL_EXEC) $(MIME_SO) $(INSTALL_MIME_LIB)/core.$(EXT)
-+  cd src; mkdir -p $(INSTALL_UNIX_LIB)
-+  cd src; $(INSTALL_EXEC) $(UNIX_SO) $(INSTALL_UNIX_LIB)/$(UNIX_SO)
- 
- #--
- # End of makefile
-diff -wbBur luasocket-2.0.2/src/makefile luasocket-2.0.2.my/src/makefile
 luasocket-2.0.2/src/makefile   2007-10-15 04:21:05.0 +
-+++ luasocket-2.0.2.my/src/makefile2011-03-09 12:02:25.0 +
-@@ -47,7 +47,7 @@
-   usocket.o \
-   unix.o
- 
--all: $(SOCKET_SO) $(MIME_SO) 
-+all: $(SOCKET_SO) $(MIME_SO) $(UNIX_SO)
- 
- $(SOCKET_SO): $(SOCKET_OBJS)
-   $(LD) $(LDFLAGS) -o $@ $(SOCKET_OBJS)



[arch-commits] Commit in luasocket/trunk (PKGBUILD)

2013-10-21 Thread Sergej Pupykin
Date: Monday, October 21, 2013 @ 16:18:51
  Author: spupykin
Revision: 98941

upgpkg: luasocket 3.0rc1-2

upd

Modified:
  luasocket/trunk/PKGBUILD

--+
 PKGBUILD |8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-21 14:09:00 UTC (rev 98940)
+++ PKGBUILD2013-10-21 14:18:51 UTC (rev 98941)
@@ -5,7 +5,7 @@
 pkgbase=luasocket
 pkgname=(lua-socket lua51-socket)
 pkgver=3.0rc1
-pkgrel=1
+pkgrel=2
 pkgdesc='Networking support library for the Lua language'
 arch=('i686' 'x86_64')
 url='https://github.com/diegonehab/luasocket'
@@ -22,6 +22,12 @@
   popd
   msg2 'Building with lua 5.1'
   cd luasocket-${pkgver/rc/-rc}
+  find . -type f -name \*.[ch] -exec sed -i \
+-e 's|include lua.h|include lua5.1/lua.h|g' \
+-e 's|include lualib.h|include lua5.1/lualib.h|g' \
+-e 's|include luaconf.h|include lua5.1/luaconf.h|g' \
+-e 's|include lauxlib.h|include lua5.1/lauxlib.h|g' \
+{} \;
   make LUAV=5.1
 }