[Frugalware-git] interim: luasocket-2.0.2-1-i686
Miklos Vajna
vmiklos at frugalware.org
Sun Aug 10 00:33:41 CEST 2008
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=interim.git;a=commitdiff;h=9b53d9e2d7306ae1f2becf5ab6cc39a381600c12
commit 9b53d9e2d7306ae1f2becf5ab6cc39a381600c12
Author: Cory Burgett <cmburget at ncsu.edu>
Date: Mon May 19 11:09:50 2008 +0000
luasocket-2.0.2-1-i686
- new package
diff --git a/source/lib-extra/luasocket/FrugalBuild b/source/lib-extra/luasocket/FrugalBuild
new file mode 100644
index 0000000..177e95e
--- /dev/null
+++ b/source/lib-extra/luasocket/FrugalBuild
@@ -0,0 +1,26 @@
+# Compiling Time: 0.01 SBU
+# Maintainer: VMiklos <vmiklos at frugalware.org>
+# Contributor: groovy2shoes <cmburget at ncsu.edu>
+
+pkgname=luasocket
+pkgver=2.0.2
+pkgrel=1
+pkgdesc="network support for the Lua language"
+url="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/"
+depends=('lua')
+groups=('lib-extra')
+archs=('i686')
+up2date="lynx -dump http://luaforge.net/projects/luasocket/|grep -m1 'Released'|sed 's/.*et \(.*\) .*/\1/'"
+source=(http://luaforge.net/frs/download.php/2664/$pkgname-$pkgver.tar.gz
+ $pkgname-$pkgver-config.diff)
+sha1sums=('5ce521fc5c6efb7c1eba7f36dfeafa9e4d745464'
+ '8dfac5f60302d15bb57544a931bfdf147aa5b557')
+
+build()
+{
+ Fpatchall
+ Fmake
+ Fmakeinstall INSTALL_TOP=$Fdestdir/usr
+}
+
+# optimization OK
diff --git a/source/lib-extra/luasocket/luasocket-2.0.2-config.diff b/source/lib-extra/luasocket/luasocket-2.0.2-config.diff
new file mode 100644
index 0000000..7e04987
--- /dev/null
+++ b/source/lib-extra/luasocket/luasocket-2.0.2-config.diff
@@ -0,0 +1,27 @@
+diff -Naur luasocket-2.0.2.orig/config luasocket-2.0.2/config
+--- luasocket-2.0.2.orig/config 2007-10-15 04:21:05.000000000 +0000
++++ luasocket-2.0.2/config 2008-05-17 23:26:08.000000000 +0000
+@@ -30,8 +30,9 @@
+ #
+ #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 ?= /usr
++INSTALL_TOP_SHARE = $(INSTALL_TOP)/share/lua/5.1
++INSTALL_TOP_LIB = $(INSTALL_TOP)/lib/lua/5.1
+
+ INSTALL_DATA=cp
+ INSTALL_EXEC=cp
+@@ -51,8 +52,9 @@
+ # for Linux
+ CC=gcc
+ DEF=-DLUASOCKET_DEBUG
+-CFLAGS= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic
+-LDFLAGS=-O -shared -fpic
++CFLAGS ?= -O2
++CFLAGS += $(LUAINC) $(DEF) -pedantic -Wall -fpic
++LDFLAGS = -O -shared -fpic
+ LD=gcc
+
+ #------
More information about the Frugalware-git
mailing list