aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/tir/APKBUILD
blob: 6d7e5ce794eef4fb0b91588b5619df66688db0c4 (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
39
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=tir
pkgver=0.9.3
_pkgsubver=3
pkgrel=0
pkgdesc="Tir web framework"
url=http://tir.mongrel2.org/
arch=noarch
license=BSD
depends="lua lua-json4 lua-md5 lua-posix lua-signal lua-sqlite3 lua-telescope lua-tnetstrings lua-zmq"
source=${url}downloads/$pkgname-$pkgver-$_pkgsubver.tar.gz

_builddir=$srcdir/$pkgname-$pkgver-$_pkgsubver
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() {
	:
}

package() {
	cd "$_builddir"
	local bindir=$pkgdir/usr/sbin
	local luadir=$pkgdir/usr/share/lua/5.1
	install -d "$bindir"
	install -d "$luadir"
	install bin/tir "$bindir"
	cp -r tir "$luadir"
}

md5sums="cd21b247adee9a39e3081d8a974b6146  tir-0.9.3-3.tar.gz"