summaryrefslogtreecommitdiffstats
path: root/testing/lua-microlight/APKBUILD
blob: 632a653339cd39b884b984ffa0ae494f4cc1313b (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-microlight
pkgver=0_git20120215
pkgrel=0
pkgdesc="a really compact set of general Lua functions"
url="http://stevedonovan.github.com/microlight/"
arch="noarch"
license="MIT"
depends="lua"
makedepends="wget"
install=""
subpackages=""
source="https://raw.github.com/gist/1834789/2bbb01662de1d83af93d2bd2990fee229b473d54/ml.lua"

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

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	install -Dm644 "$srcdir"/ml.lua "$pkgdir"/usr/share/lua/5.1/ml.lua
}

md5sums="0a1e55c9babf6c093aa24f391c07cfd7  ml.lua"