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/luaexpat |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/luaexpat')
-rw-r--r-- | community/luaexpat/PKGBUILD | 22 | ||||
-rw-r--r-- | community/luaexpat/newconfig | 26 |
2 files changed, 48 insertions, 0 deletions
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 <kkndrox@gmail.com> +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 |