diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-23 14:02:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-23 14:02:00 +0000 |
commit | 24d358ca68c93df35fdd45992658f6d9402c43a5 (patch) | |
tree | 05129c4d57ba1aca5bd710b2bbafa52ee6aea26f /main/lua-posixtz | |
parent | 71d268d109785c42021caeff5ff7a7c075f7f48f (diff) | |
download | aports-24d358ca68c93df35fdd45992658f6d9402c43a5.tar.bz2 aports-24d358ca68c93df35fdd45992658f6d9402c43a5.tar.xz |
main/lua-posixtz: moved from testing
Diffstat (limited to 'main/lua-posixtz')
-rw-r--r-- | main/lua-posixtz/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/lua-posixtz/APKBUILD b/main/lua-posixtz/APKBUILD new file mode 100644 index 0000000000..ba0efa3fad --- /dev/null +++ b/main/lua-posixtz/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=lua-posixtz +pkgver=0.2 +pkgrel=0 +pkgdesc="Lua module to extract POSIX timezone from tzdata" +url="http://git.alpinelinux.org/cgit/ncopa/posixtz.git/" +arch="all" +license="GPLv2" +depends= +makedepends= +install= +subpackages= +source="http://git.alpinelinux.org/cgit/ncopa/posixtz.git/snapshot/posixtz-$pkgver.tar.bz2" + +_builddir="$srcdir"/posixtz-$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() { + cd "$_builddir" + make core.so || return 1 +} + +package() { + cd "$_builddir" + install -D core.so "$pkgdir"/usr/lib/lua/5.1/posixtz/core.so + install -D posixtz.lua "$pkgdir"/usr/share/lua/5.1/posixtz.lua +} + +md5sums="0ac9be78c995607a512a87292b0b5a01 posixtz-0.2.tar.bz2" |