diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-04 15:46:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-04 15:46:02 +0000 |
commit | 4da90c5509d86e4d1897fd1492b093bce61d0cfb (patch) | |
tree | 6037f41cedafa005bf2e62a0ee6c9c2f98bc7f61 | |
parent | 15609c6abbdbdc803e1a05b3075c5482e5971b90 (diff) | |
parent | 85004d5e40d39381c22e3344b04b114c51974b28 (diff) | |
download | aports-4da90c5509d86e4d1897fd1492b093bce61d0cfb.tar.bz2 aports-4da90c5509d86e4d1897fd1492b093bce61d0cfb.tar.xz |
Merge commit 'mmason/master'
-rw-r--r-- | unstable/luaexpat/APKBUILD | 25 | ||||
-rw-r--r-- | unstable/luaexpat/newconfig | 26 | ||||
-rw-r--r-- | unstable/luasocket/APKBUILD | 22 |
3 files changed, 73 insertions, 0 deletions
diff --git a/unstable/luaexpat/APKBUILD b/unstable/luaexpat/APKBUILD new file mode 100644 index 0000000000..e11ba10750 --- /dev/null +++ b/unstable/luaexpat/APKBUILD @@ -0,0 +1,25 @@ +# Contributor: Mika Havela <mika.havela@gmail.com> +# Maintainer: Mika Havela <mika.havela@gmail.com> +pkgname=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 expat uclibc" +makedepends="lua-dev expat-dev" +install= +source="http://luaforge.net/frs/download.php/2469/$pkgname-$pkgver.tar.gz +newconfig" + +build() { + cd "$srcdir/$pkgname-$pkgver" + mv ../newconfig ./config + + make || return 1 + 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/unstable/luaexpat/newconfig b/unstable/luaexpat/newconfig new file mode 100644 index 0000000000..7d8d6331fc --- /dev/null +++ b/unstable/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= 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 diff --git a/unstable/luasocket/APKBUILD b/unstable/luasocket/APKBUILD new file mode 100644 index 0000000000..c42a6229fd --- /dev/null +++ b/unstable/luasocket/APKBUILD @@ -0,0 +1,22 @@ +# Contributor: Mika Havela <mika.havela@gmail.com> +# Maintainer: Mika Havela <mika.havela@gmail.com> +pkgname=luasocket +pkgver=2.0.2 +pkgrel=0 +pkgdesc="Luasocket is the most comprehensive networking support library for the Lua language." +url="http://luaforge.net/projects/luasocket/" +license="MIT" +depends="lua" +makedepends="lua-dev" +install= +source="http://luaforge.net/frs/download.php/2664/$pkgname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + make || return 1 + make INSTALL_TOP_SHARE="$pkgdir/usr/share/lua/5.1" INSTALL_TOP_LIB="$pkgdir/usr/lib/lua/5.1" install + +} + +md5sums="41445b138deb7bcfe97bff957503da8e luasocket-2.0.2.tar.gz" |