summaryrefslogtreecommitdiff
path: root/community/luasocket
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-16 02:25:47 -0800
committerroot <root@rshg054.dnsready.net>2012-12-16 02:25:47 -0800
commitd1335cc6b44826a3ae6934a40bd618bfddcd2e6e (patch)
tree14e670e9b7ea52dfebe033b6c6ba4fd952ae973f /community/luasocket
parenta829a3b1a4b3eefc7adb1d630f071247e79b9f72 (diff)
Sun Dec 16 02:25:22 PST 2012
Diffstat (limited to 'community/luasocket')
-rw-r--r--community/luasocket/PKGBUILD44
1 files changed, 21 insertions, 23 deletions
diff --git a/community/luasocket/PKGBUILD b/community/luasocket/PKGBUILD
index 4537779c2..d659a6086 100644
--- a/community/luasocket/PKGBUILD
+++ b/community/luasocket/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 81244 2012-12-14 12:38:59Z seblu $
+# $Id: PKGBUILD 81274 2012-12-15 15:00:36Z seblu $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Anders Bergh <anders1@gmail.com>
pkgbase=luasocket
-pkgname=(lua-socket lua51-socket)
+pkgname=(lua51-socket)
pkgver=2.0.2
-pkgrel=4
+pkgrel=5
pkgdesc='Networking support library for the Lua language'
arch=('i686' 'x86_64')
url='http://www.cs.princeton.edu/~diego/professional/luasocket/'
@@ -13,34 +13,32 @@ license=('MIT')
replaces=('luasocket')
conflicts=('luasocket')
makedepends=('lua' 'lua51')
-source=(http://luaforge.net/frs/download.php/2664/luasocket-$pkgver.tar.gz
- luasocket-unixsocket.patch
- lua52.patch)
+source=("http://luaforge.net/frs/download.php/2664/luasocket-$pkgver.tar.gz"
+ 'luasocket-unixsocket.patch')
md5sums=('41445b138deb7bcfe97bff957503da8e'
- '8d116bb70bd7a2fa15cbe949d4cfc35e'
- '6f9c6416dd70a7bc1a867003f08c2752')
+ '8d116bb70bd7a2fa15cbe949d4cfc35e')
build() {
- msg2 'Building with lua 5.2'
- cp -a luasocket-$pkgver luasocket-$pkgver-52
- cd luasocket-$pkgver-52
- patch -Np1 -i "$srcdir/luasocket-unixsocket.patch"
- patch -Np1 -i "$srcdir/lua52.patch"
- make
+# 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
msg2 'Building with lua 5.1'
- cd ../luasocket-$pkgver
+ cd luasocket-$pkgver
patch -Np1 -i "$srcdir/luasocket-unixsocket.patch"
make LUAINC=-I/usr/include/lua5.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-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_lua51-socket() {
depends=('lua51')