[arch-commits] Commit in luasocket/repos (4 files)

Sergej Pupykin spupykin at archlinux.org
Tue May 5 10:52:09 UTC 2015


    Date: Tuesday, May 5, 2015 @ 12:52:09
  Author: spupykin
Revision: 132768

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  luasocket/repos/community-staging-i686/
  luasocket/repos/community-staging-i686/PKGBUILD
    (from rev 132767, luasocket/trunk/PKGBUILD)
  luasocket/repos/community-staging-x86_64/
  luasocket/repos/community-staging-x86_64/PKGBUILD
    (from rev 132767, luasocket/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   56 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

Copied: luasocket/repos/community-staging-i686/PKGBUILD (from rev 132767, luasocket/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-05-05 10:52:09 UTC (rev 132768)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Anders Bergh <anders1 at gmail.com>
+
+pkgbase=luasocket
+pkgname=(lua-socket lua51-socket)
+pkgver=3.0rc1
+pkgrel=5
+pkgdesc='Networking support library for the Lua language'
+arch=('i686' 'x86_64')
+url='https://github.com/diegonehab/luasocket'
+license=('MIT')
+makedepends=('lua' 'lua51')
+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')
+
+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'
+  pushd luasocket-${pkgver/rc/-rc}-52
+  make LUAV=5.2
+  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
+}
+
+package_lua-socket() {
+  depends=('lua')
+  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"
+}
+
+package_lua51-socket() {
+  depends=('lua51')
+  replaces=('luasocket')
+  conflicts=('luasocket')
+
+  cd luasocket-${pkgver/rc/-rc}
+  make DESTDIR="$pkgdir/" LUAV=5.1 prefix=/usr install-unix
+  install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: luasocket/repos/community-staging-x86_64/PKGBUILD (from rev 132767, luasocket/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-05-05 10:52:09 UTC (rev 132768)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Anders Bergh <anders1 at gmail.com>
+
+pkgbase=luasocket
+pkgname=(lua-socket lua51-socket)
+pkgver=3.0rc1
+pkgrel=5
+pkgdesc='Networking support library for the Lua language'
+arch=('i686' 'x86_64')
+url='https://github.com/diegonehab/luasocket'
+license=('MIT')
+makedepends=('lua' 'lua51')
+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')
+
+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'
+  pushd luasocket-${pkgver/rc/-rc}-52
+  make LUAV=5.2
+  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
+}
+
+package_lua-socket() {
+  depends=('lua')
+  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"
+}
+
+package_lua51-socket() {
+  depends=('lua51')
+  replaces=('luasocket')
+  conflicts=('luasocket')
+
+  cd luasocket-${pkgver/rc/-rc}
+  make DESTDIR="$pkgdir/" LUAV=5.1 prefix=/usr install-unix
+  install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list