aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lua-tnetstrings/APKBUILD
blob: efd5834bc1896d598b113be865b1176c80711582 (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:
pkgname=lua-tnetstrings
pkgver=1.1.0
pkgrel=0
pkgdesc="Tagged netstrings implementation for Lua"
url=https://github.com/jsimmons/tnetstrings.lua
arch=noarch
license=BSD
depends=lua
source=http://github.com/downloads/jsimmons/tnetstrings.lua/tnetstrings-$pkgver.tar.bz2

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

package() {
	cd "$_builddir"
	local dir=$pkgdir/usr/share/lua/5.1
	install -d "$dir"
	install -m 644 "$_builddir/tnetstrings.lua" "$dir"
}

md5sums="7ff1f79d9711f9e1f307bc747d75a522  tnetstrings-1.1.0.tar.bz2"