diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-11-05 09:29:48 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-11-05 09:30:12 +0200 |
commit | ee3ca86649c9e180d81d367404d7ef81170c858f (patch) | |
tree | a0b253ce1be5dee0064cdfe8ee8ce310b74c690f /main/lua-maxminddb | |
parent | cb18bc60c11ee3f81295a166f59cd9a26eff0027 (diff) | |
download | aports-ee3ca86649c9e180d81d367404d7ef81170c858f.tar.bz2 aports-ee3ca86649c9e180d81d367404d7ef81170c858f.tar.xz |
main/lua-maxminddb: moved from testing
Diffstat (limited to 'main/lua-maxminddb')
-rw-r--r-- | main/lua-maxminddb/APKBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/main/lua-maxminddb/APKBUILD b/main/lua-maxminddb/APKBUILD new file mode 100644 index 0000000000..5ce2a0a630 --- /dev/null +++ b/main/lua-maxminddb/APKBUILD @@ -0,0 +1,61 @@ +# Maintainer: Timo Teräs <timo.teras@iki.fi> +_luaversions="5.1 5.2" + +pkgname=lua-maxminddb +pkgver=0.1 +pkgrel=0 +pkgdesc="libmaxminddb bindings for Lua" +url="https://github.com/fabled/lua-maxminddb" +arch="all" +license="MIT" +depends="" +makedepends="libmaxminddb-dev" +subpackages= +for _i in $_luaversions; do + depends="$depends lua$_i-maxminddb" + makedepends="$makedepends lua$_i-dev" + subpackages="$subpackages lua$_i-maxminddb:_maxminddb_${_i/./_}" +done +install= +source="$pkgname-$pkgver.tar.gz::https://github.com/fabled/lua-maxminddb/archive/v$pkgver.tar.gz" + +_builddir="$srcdir"/lua-maxminddb-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here + for _i in $_luaversions; do + cp -a "$_builddir" "$srcdir"/build-$_i || return 1 + done +} + +build() { + cd "$_builddir" + for _i in $_luaversions; do + cd "$srcdir"/build-$_i + msg "build for Lua $_i" + make LUA_PKG="lua$_i" \ + || return 1 + done +} + +package() { + mkdir -p "$pkgdir" +} + +_split_maxminddb() { + local _ver=$1 + pkgdesc="$pkgdesc $_ver" + depends="" + + cd "$srcdir"/build-$_ver + make install LUA_PKG="lua$_ver" DESTDIR="$subpkgdir" +} + +for _i in $_luaversions; do + eval "_maxminddb_${_i/./_}() { _split_maxminddb $_i; }" +done + +md5sums="4dc1537c7f8064535868eacc4a5bd757 lua-maxminddb-0.1.tar.gz" +sha256sums="414f5eaa818932bc1cbaa7f27dbde31b3e813d75851e468dd1606f2a89373f8b lua-maxminddb-0.1.tar.gz" +sha512sums="37fb3e37e24dd6188a1d38945056acd8444d0963af5c53b3c3af51f02130d0eeeb2d32428fae9e75f55db49b7caefe557389f93e27208729222b1a91e63dff0a lua-maxminddb-0.1.tar.gz" |