From 3609d312b0eb1dfc7c5ce40645332556d3c4b3a2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 7 Jan 2010 17:15:55 +0000 Subject: main/lua-expat: renamed from luaexpat --- main/lua-expat/APKBUILD | 30 ++++++++++++++++++++++++++++++ main/lua-expat/newconfig | 26 ++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 main/lua-expat/APKBUILD create mode 100644 main/lua-expat/newconfig (limited to 'main/lua-expat') diff --git a/main/lua-expat/APKBUILD b/main/lua-expat/APKBUILD new file mode 100644 index 000000000..e2c58cad6 --- /dev/null +++ b/main/lua-expat/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Mika Havela +# Maintainer: Mika Havela +pkgname=lua-expat +_name=luaexpat +pkgver=1.1 +pkgrel=0 +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." +url="http://luaforge.net/projects/luaexpat/" +license="MIT" +depends="lua" +makedepends="lua-dev expat-dev" +install= +source="http://luaforge.net/frs/download.php/2469/$_name-$pkgver.tar.gz +newconfig" +replaces="luaexpat" + +build() { + cd "$srcdir/$_name-$pkgver" + mv ../newconfig ./config + make || return 1 +} + +package() { + cd "$srcdir/$_name-$pkgver" + make LUA_DIR="$pkgdir"/usr/share/lua/5.1 LUA_LIBDIR="$pkgdir"/usr/lib/lua/5.1 install + +} + +md5sums="6ecb895ccf5cff1e7f2facd438b1f8d0 luaexpat-1.1.tar.gz +eb947b7aa99b487289b02c1ab1b8ccd3 newconfig" diff --git a/main/lua-expat/newconfig b/main/lua-expat/newconfig new file mode 100644 index 000000000..7d8d6331f --- /dev/null +++ b/main/lua-expat/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= 514 +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) +CC = gcc -- cgit v1.2.3