From 5b5c7a6c1cdb7f83682201c8521c31e7e35ce6db Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Tue, 9 Oct 2018 08:30:28 -0500 Subject: user/lua-expat: new package for prosody --- user/lua-expat/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 user/lua-expat/APKBUILD diff --git a/user/lua-expat/APKBUILD b/user/lua-expat/APKBUILD new file mode 100644 index 000000000..9c8a6713a --- /dev/null +++ b/user/lua-expat/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Mika Havela +# Contribtor: Natanael Copa +# Maintainer: Kiyoshi Aman +pkgname=lua-expat +_name=expat +pkgver=1.3.0 +pkgrel=0 +pkgdesc="SAX XML parser based on the Expat library" +url="https://matthewwild.co.uk/projects/luaexpat/" +arch="all" +license="MIT" +depends="lua5.3" +makedepends="lua5.3-dev expat-dev" +source="http://matthewwild.co.uk/projects/luaexpat/luaexpat-$pkgver.tar.gz" +builddir="$srcdir/luaexpat-$pkgver" + +build() { + cd "$builddir" + make LUA_V=5.3 +} + +check() { + cd "$builddir" + LUA_CPATH="./src/?.so" lua tests/test.lua +} + +package() { + cd "$builddir" + make LUA_V=5.3 DESTDIR="$pkgdir" install +} + +sha512sums="91884653310e2dc89ade6d1653875ac8607640a21853d3ccb1fd0f833812e41981fad5c40101732ec249104d2c50c9a332208d1e44423b8428065a223c60b4ae luaexpat-1.3.0.tar.gz" -- cgit v1.2.3-70-g09d2