aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-xmlrpc/APKBUILD
blob: e7e981e86c453f4467201c534e46de9788a6e2ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaver=5.1
pkgname=lua-xmlrpc
_name=$pkgname
pkgver=1.2.1
pkgrel=0
pkgdesc="Lua package to access and provide XML-RPC services"
url="https://github.com/timn/lua-xmlrpc"
arch="noarch"
license="MIT"
depends="lua-expat lua-socket"
makedepends="lua-dev"
install=
source="lua-xmlrcp-$pkgver.tar.gz::https://github.com/timn/lua-xmlrpc/archive/v$pkgver.tar.gz"

_builddir="$srcdir/$_name-$pkgver"

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	return 0
}

package() {
	cd "$_builddir"
	make install LUA_DIR="$pkgdir"/usr/share/lua/$_luaver
}

md5sums="422b830ca5706bb109ed8a28b8e82a32  lua-xmlrcp-1.2.1.tar.gz"
sha256sums="0047e353ed4357d33479e923ddd8be3ec29edb9264f79dd2fd1993557ae4ad71  lua-xmlrcp-1.2.1.tar.gz"
sha512sums="27123ec0fe006ebe7dbb88ccdb2b2a028d592fcb97138ee2891e89e89c48563a06ec05ea543a6068eda1e71bbe7d82a1791fdf734ed08f3613d5d252fbb7d77f  lua-xmlrcp-1.2.1.tar.gz"