diff options
Diffstat (limited to 'testing/lua-tnetstrings/APKBUILD')
-rw-r--r-- | testing/lua-tnetstrings/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/lua-tnetstrings/APKBUILD b/testing/lua-tnetstrings/APKBUILD new file mode 100644 index 000000000..efd5834bc --- /dev/null +++ b/testing/lua-tnetstrings/APKBUILD @@ -0,0 +1,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" |