diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-19 12:11:24 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-19 12:11:24 +0000 |
commit | 0a154c8114a5ba6d66757cd75596c0fdf57bc61a (patch) | |
tree | fcecc14f9988e31b0c6313bdc002249e2fa6e7fd /testing/libdroplet | |
parent | edbcecf86da2942c18f0867cde6ab9716d283ba5 (diff) | |
download | aports-0a154c8114a5ba6d66757cd75596c0fdf57bc61a.tar.bz2 aports-0a154c8114a5ba6d66757cd75596c0fdf57bc61a.tar.xz |
testing/libdroplet: new aport
Diffstat (limited to 'testing/libdroplet')
-rw-r--r-- | testing/libdroplet/APKBUILD | 39 | ||||
-rw-r--r-- | testing/libdroplet/libdroplet-json-c.patch | 26 |
2 files changed, 65 insertions, 0 deletions
diff --git a/testing/libdroplet/APKBUILD b/testing/libdroplet/APKBUILD new file mode 100644 index 0000000000..a96fbc8bc1 --- /dev/null +++ b/testing/libdroplet/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=libdroplet +_pkgname=Droplet +pkgver=2.0 +pkgrel=0 +pkgdesc="Cloud storage client library" +url="http://www.scality.com" +arch="all" +license="BSD" +depends="" +depends_dev="openssl-dev json-c-dev" +makedepends="$depends_dev autoconf automake libtool libxml2-dev" +install="" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/scality/Droplet/archive/v$pkgver.tar.gz + libdroplet-json-c.patch" + +builddir="$srcdir"/$_pkgname-$pkgver +build() { + cd "$builddir" + sed -e "s/json/json-c/g" -i configure.ac + ./autogen.sh + ./configure \ + --prefix=/usr + make || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +md5sums="82f7020eef057e21731a3f05efb2e9d5 libdroplet-2.0.tar.gz +f4e877941e6d5b3b790351b8e0975a62 libdroplet-json-c.patch" +sha256sums="7cd810e936e490289a6cbaec32a45d80ad206f9a1fbd8ad2a3b947752597a7b9 libdroplet-2.0.tar.gz +76f9caf0e29cfa25aea6da10887740ade8c0385a1541fef0b2de036314d3ea11 libdroplet-json-c.patch" +sha512sums="9c580bcca80148de85d9a27cb584867401f318610badc2d82ca2cdf220678a857220a5186e888f7c81e8b7fbbeabe9c2ca93e114ca8f6d92d667894f09b53ab5 libdroplet-2.0.tar.gz +56468c69f5a4b6005ededced2ea9ff689beb74ff3cd4883289ef62390f8e82a59a946e207fe98baf0eb4bf701737d36cf86f7fcfed37a2bcf5c66ad0198f76ed libdroplet-json-c.patch" diff --git a/testing/libdroplet/libdroplet-json-c.patch b/testing/libdroplet/libdroplet-json-c.patch new file mode 100644 index 0000000000..783c7aba94 --- /dev/null +++ b/testing/libdroplet/libdroplet-json-c.patch @@ -0,0 +1,26 @@ +diff --git a/libdroplet/cdmi/replyparser.c b/libdroplet/cdmi/replyparser.c +index d5791cc..1689dff 100644 +--- a/libdroplet/cdmi/replyparser.c ++++ b/libdroplet/cdmi/replyparser.c +@@ -32,7 +32,7 @@ + * https://github.com/scality/Droplet + */ + #include "dropletp.h" +-#include <json/json.h> ++#include <json-c/json.h> + + //#define DPRINTF(fmt,...) fprintf(stderr, fmt, ##__VA_ARGS__) + #define DPRINTF(fmt,...) +diff --git a/libdroplet/include/dropletp.h b/libdroplet/include/dropletp.h +index f765c59..3867c43 100644 +--- a/libdroplet/include/dropletp.h ++++ b/libdroplet/include/dropletp.h +@@ -58,7 +58,7 @@ + #include <openssl/rand.h> + #include <libxml/parser.h> + #include <libxml/tree.h> +-#include <json/json.h> ++#include <json-c/json.h> + #include <sys/types.h> + #include <pwd.h> + #include <fcntl.h> |