aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lua-telescope/APKBUILD
blob: 3e9e2676181c944e3dd40c68d3c1d3c8ae0d91c6 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=lua-telescope
pkgver=0.4.1
pkgrel=1
pkgdesc="Test library for Lua"
url=https://github.com/norman/telescope
arch=noarch
license=MIT
depends=lua
source=https://github.com/downloads/norman/telescope/telescope-$pkgver.tar.gz

_builddir=$srcdir/telescope-$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 bindir=$pkgdir/usr/bin
	local luadir=$pkgdir/usr/share/lua/5.1
	install -d "$bindir"
	install tsc "$bindir"
	install -d "$luadir"
	install -m 644 telescope.lua "$luadir"
}

md5sums="e240350716994873fe1ad7f67918c3b2  telescope-0.4.1.tar.gz"