summaryrefslogtreecommitdiffstats
path: root/main/lua-sleep/APKBUILD
blob: 22d135483a45335f10f6fb3aa2bc1ed9e7c28bc9 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=lua-sleep
pkgver=0.1
pkgrel=0
pkgdesc="Sleep functions for Lua"
url=http://projects.plentyfact.org/projects/lua-sleep
arch=all
license=public-domain
depends=lua
makedepends=lua-dev
source=http://projects.plentyfact.org/attachments/download/21/lua-sleep_${pkgver}.tar.gz

_builddir=$srcdir/lua-sleep_$pkgver
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() {
	make -C "$_builddir"
}

package() {
	local dir=$pkgdir/usr/lib/lua/5.1
	install -d "$dir"
	install "$_builddir/lsleep.so" "$dir"
}

md5sums="aeb91a0abeb483868e27c4f5add59805  lua-sleep_0.1.tar.gz"