summaryrefslogtreecommitdiffstats
path: root/main/lua-xml/APKBUILD
blob: 55c11fdbb003ffcbac5d2441ab25dc561b5c7208 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-xml
_name=LuaXML
pkgver=101012
pkgrel=0
pkgdesc="a minimal set of functions for the processing of XML data in Lua"
url="http://viremo.eludi.net/LuaXML/index.html"
arch="all"
license="MIT"
depends=
makedepends="lua-dev"
install=
subpackages=
source="http://viremo.eludi.net/LuaXML/LuaXML_$pkgver.zip"

_builddir="$srcdir"

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -m755 -D LuaXML_lib.so "$pkgdir"/usr/lib/lua/5.1/LuaXML_lib.so\
		|| return 1
	install -m755 -D LuaXml.lua "$pkgdir"/usr/share/lua/5.1/LuaXml.lua \
		|| return 1
}

md5sums="81c2f0c7c4238d3115e3c3e1ebc7d194  LuaXML_101012.zip"