diff options
Diffstat (limited to 'testing/lua-microlight/APKBUILD')
-rw-r--r-- | testing/lua-microlight/APKBUILD | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/testing/lua-microlight/APKBUILD b/testing/lua-microlight/APKBUILD index 632a653339..5d50d473bf 100644 --- a/testing/lua-microlight/APKBUILD +++ b/testing/lua-microlight/APKBUILD @@ -1,19 +1,46 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lua-microlight -pkgver=0_git20120215 +pkgver=1.0 pkgrel=0 pkgdesc="a really compact set of general Lua functions" url="http://stevedonovan.github.com/microlight/" arch="noarch" license="MIT" depends="lua" -makedepends="wget" +makedepends="" install="" subpackages="" -source="https://raw.github.com/gist/1834789/2bbb01662de1d83af93d2bd2990fee229b473d54/ml.lua" -_builddir= +_fmt=tar.gz + +source="http://dev.alpinelinux.org/archive/lua-microlight/lua-microlight-$pkgver.$_fmt" + +_giturl="git://github.com/stevedonovan/Microlight.git" +_upload=dev.alpinelinux.org:/archive/lua-microlight +_builddir="$srcdir"/lua-microlight-$pkgver + +archivetag() { + local _tag=$pkgver + local _pkg=$pkgname-$_tag.$_fmt + mkdir -p "$srcdir" + cd "$srcdir" + rm -rf "$pkgname" + git clone --bare $_giturl || return 1 + git --git-dir ${_giturl##*/} archive \ + --format $_fmt \ + --prefix $pkgname-$pkgver/ \ + --output $_pkg \ + $_tag \ + || return 1 + msg "New snapshot: $_pkg" + if [ -n "$_upload" ]; then + msg "Uploading to $_upload" + scp $_pkg $_upload || return 1 + abump $pkgname-$_tag + fi +} + prepare() { local i cd "$_builddir" @@ -30,7 +57,7 @@ build() { package() { cd "$_builddir" - install -Dm644 "$srcdir"/ml.lua "$pkgdir"/usr/share/lua/5.1/ml.lua + install -Dm644 "$_builddir"/ml.lua "$pkgdir"/usr/share/lua/5.1/ml.lua } -md5sums="0a1e55c9babf6c093aa24f391c07cfd7 ml.lua" +md5sums="3441e61bd170c8b4ddcd7df14072bdcb lua-microlight-1.0.tar.gz" |