aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/lua-cloud_storage
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-25 15:26:24 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-25 15:26:24 +0200
commitb6af1e02efe594039707cd882517663d5370f375 (patch)
treeff9c2d55873e051e82972ba64c017352d3a75d34 /unmaintained/lua-cloud_storage
parenta71346b7acebc600960a98c84fb32cfd72fe864b (diff)
downloadaports-b6af1e02efe594039707cd882517663d5370f375.tar.bz2
aports-b6af1e02efe594039707cd882517663d5370f375.tar.xz
testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been updated for atleast 6 months. If you are affected by this commit please follow this proceddure: * make sure your packages build on all architectures * move your pacakge(s) back to testing * if you want to keep this package and can maintain it (or find somebody to maintain it for you) for a minimum of 6 months ask it to be moved to community
Diffstat (limited to 'unmaintained/lua-cloud_storage')
-rw-r--r--unmaintained/lua-cloud_storage/APKBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/unmaintained/lua-cloud_storage/APKBUILD b/unmaintained/lua-cloud_storage/APKBUILD
new file mode 100644
index 0000000000..4fb06ac3c4
--- /dev/null
+++ b/unmaintained/lua-cloud_storage/APKBUILD
@@ -0,0 +1,61 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=lua-cloud_storage
+pkgver=0.1.0
+_luaversions="5.1 5.2 5.3"
+pkgrel=3
+pkgdesc="A Lua library for communicating with Google Cloud Storage"
+url="https://github.com/leafo/cloud_storage"
+arch="noarch"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="$depends_dev lua-moonscript"
+install=""
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/leafo/cloud_storage/archive/v$pkgver.tar.gz"
+for _v in $_luaversions; do
+ subpackages="$subpackages lua$_v-cloud_storage:split_${_v/./_}"
+done
+
+_builddir="$srcdir"/cloud_storage-$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 || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_split() {
+ cd "$_builddir"
+ local _ver="$1"
+ pkgdesc="A Lua $_ver library for communicating with Google Cloud Storage"
+ install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
+ depends="lua${_ver}-socket lua${_ver}-cjson lua${_ver}-mimetypes
+ lua${_ver}-crypto lua${_ver}-expat lua${_ver}-date"
+ mkdir -p "$subpkgdir"/usr/share/lua/$_ver/cloud_storage
+ cp cloud_storage/*.lua \
+ "$subpkgdir"/usr/share/lua/$_ver/cloud_storage/ || return 1
+ mv "$subpkgdir"/usr/share/lua/$_ver/cloud_storage/google.lua \
+ "$subpkgdir"/usr/share/lua/$_ver/ || return 1
+}
+
+for _v in $_luaversions; do
+ eval "split_${_v/./_}() { _split $_v; }"
+done
+
+md5sums="dae6fcd15554368f3b9fcc8d9be40542 lua-cloud_storage-0.1.0.tar.gz"
+sha256sums="58eb6c8767daa07c05accf0a0624fa4ef5574865cfac631dff9768ec2dfdea29 lua-cloud_storage-0.1.0.tar.gz"
+sha512sums="d1fe7811469cc2dce11319692500c1d3d78b39a8e3c6ad9513a1ad694c080ee8fc1872c76c08cdc3d777098407ad46574c18de95eb453d3333394b24c727e0ad lua-cloud_storage-0.1.0.tar.gz"