diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2018-10-10 02:40:39 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2018-10-10 02:40:39 +0000 |
commit | 5c3c3141ae833e05ed02cc61c67737bc7e1dd145 (patch) | |
tree | 348549f701744717dd07178651d3245e136bb5a1 /user/lua-expat/APKBUILD | |
parent | cd08a629daf51010fd863fd81add887377cd6b20 (diff) | |
parent | cef60d848566b56692a9604df7c4e53c8b5605c6 (diff) | |
download | packages-5c3c3141ae833e05ed02cc61c67737bc7e1dd145.tar.gz packages-5c3c3141ae833e05ed02cc61c67737bc7e1dd145.tar.bz2 packages-5c3c3141ae833e05ed02cc61c67737bc7e1dd145.tar.xz packages-5c3c3141ae833e05ed02cc61c67737bc7e1dd145.zip |
Merge branch 'prosody' into 'master'
Import prosody from Alpine, with cleanups.
See merge request !84
Diffstat (limited to 'user/lua-expat/APKBUILD')
-rw-r--r-- | user/lua-expat/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
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 <mika.havela@gmail.com> +# Contribtor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +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" |