From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/luaexpat/PKGBUILD | 22 ++++++++++++++++++++++ community/luaexpat/newconfig | 26 ++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 community/luaexpat/PKGBUILD create mode 100644 community/luaexpat/newconfig (limited to 'community/luaexpat') diff --git a/community/luaexpat/PKGBUILD b/community/luaexpat/PKGBUILD new file mode 100644 index 000000000..e0f61fa82 --- /dev/null +++ b/community/luaexpat/PKGBUILD @@ -0,0 +1,22 @@ +# Contributor: Lucas Hermann Negri +pkgname='luaexpat' +pkgver='1.1' +pkgrel='3' +pkgdesc='LuaExpat is a SAX XML parser based on the Expat library. LuaExpat is free software and uses the same license as Lua 5.0.' +arch=('i686' 'x86_64') +url='http://luaforge.net/projects/luaexpat/' +license=('MIT') +makedepends=('gcc' 'lua>=5.1' 'expat>=2') +depends=('lua' 'expat') +source=(http://luaforge.net/frs/download.php/2469/$pkgname-$pkgver.tar.gz 'newconfig') +md5sums=('6ecb895ccf5cff1e7f2facd438b1f8d0' 'b89a09379d3e46e6496255e44cecc316') + +build() { + cd $startdir/src/ + mv newconfig $pkgname-$pkgver/config + cd $pkgname-$pkgver + make || return 1 + make DESTDIR=$startdir/pkg install || return 1 + mv usr $startdir/pkg +} + diff --git a/community/luaexpat/newconfig b/community/luaexpat/newconfig new file mode 100644 index 000000000..095c0800e --- /dev/null +++ b/community/luaexpat/newconfig @@ -0,0 +1,26 @@ +LUA_LIBDIR= usr/lib/lua/5.1 +LUA_DIR= usr/share/lua/5.1 +LUA_INC= /usr/include +EXPAT_INC= /usr/include + +# OS dependent +LIB_OPTION= -shared + +LIBNAME= $T.so.$V +LUA_VERSION_NUM= 512 +COMPAT_DIR= ../compat/src + +# Compilation parameters +CWARNS = -Wall -pedantic \ + -Waggregate-return \ + -Wcast-align \ + -Wmissing-prototypes \ + -Wstrict-prototypes \ + -Wnested-externs \ + -Wpointer-arith \ + -Wshadow \ + -Wwrite-strings + +CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \ + -I$(COMPAT_DIR) -I$(EXPAT_INC) -fPIC +CC = gcc -- cgit v1.2.3-54-g00ecf