diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/luasocket |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/luasocket')
-rw-r--r-- | community/luasocket/PKGBUILD | 29 | ||||
-rw-r--r-- | community/luasocket/luasocket-arch.patch | 14 | ||||
-rw-r--r-- | community/luasocket/luasocket-unixsocket.patch | 33 |
3 files changed, 76 insertions, 0 deletions
diff --git a/community/luasocket/PKGBUILD b/community/luasocket/PKGBUILD new file mode 100644 index 000000000..17405e25b --- /dev/null +++ b/community/luasocket/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 41828 2011-03-09 12:08:16Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Anders Bergh <anders1@gmail.com> + +pkgname=luasocket +pkgver=2.0.2 +pkgrel=4 +pkgdesc="Luasocket is the most comprehensive networking support library for the Lua language." +arch=('i686' 'x86_64') +url="http://www.cs.princeton.edu/~diego/professional/luasocket/" +license=('MIT') +depends=(lua) +source=(http://luaforge.net/frs/download.php/2664/luasocket-$pkgver.tar.gz + lua-license.html::http://www.lua.org/copyright.html + luasocket-arch.patch + luasocket-unixsocket.patch) +md5sums=('41445b138deb7bcfe97bff957503da8e' + '54af76b72c22a75aa468cb688017e78e' + '3270f42ff374f230c6450f49132f8625' + '8d116bb70bd7a2fa15cbe949d4cfc35e') + +build() { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 < $srcdir/luasocket-arch.patch + patch -p1 < $srcdir/luasocket-unixsocket.patch + make + make DESTDIR="$pkgdir" install + install -D -m0644 $srcdir/lua-license.html $pkgdir/usr/share/licenses/$pkgname/lua-license.html +} diff --git a/community/luasocket/luasocket-arch.patch b/community/luasocket/luasocket-arch.patch new file mode 100644 index 000000000..f578831eb --- /dev/null +++ b/community/luasocket/luasocket-arch.patch @@ -0,0 +1,14 @@ +diff -wbBur luasocket-2.0.2/config luasocket-2.0.2.my/config +--- luasocket-2.0.2/config 2007-10-15 08:21:05.000000000 +0400 ++++ luasocket-2.0.2.my/config 2007-10-15 12:22:16.000000000 +0400 +@@ -30,8 +30,8 @@ + # + #INSTALL_TOP_SHARE=/usr/local/share/lua/5.0 + #INSTALL_TOP_LIB=/usr/local/lib/lua/5.0 +-INSTALL_TOP_SHARE=/usr/local/share/lua/5.1 +-INSTALL_TOP_LIB=/usr/local/lib/lua/5.1 ++INSTALL_TOP_SHARE=$(DESTDIR)/usr/share/lua/5.1 ++INSTALL_TOP_LIB=$(DESTDIR)/usr/lib/lua/5.1 + + INSTALL_DATA=cp + INSTALL_EXEC=cp diff --git a/community/luasocket/luasocket-unixsocket.patch b/community/luasocket/luasocket-unixsocket.patch new file mode 100644 index 000000000..07c9401fa --- /dev/null +++ b/community/luasocket/luasocket-unixsocket.patch @@ -0,0 +1,33 @@ +diff -wbBur luasocket-2.0.2/makefile luasocket-2.0.2.my/makefile +--- luasocket-2.0.2/makefile 2007-10-15 04:21:05.000000000 +0000 ++++ luasocket-2.0.2.my/makefile 2011-03-09 12:00:54.000000000 +0000 +@@ -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.000000000 +0000 ++++ luasocket-2.0.2.my/src/makefile 2011-03-09 12:02:25.000000000 +0000 +@@ -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) |