aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libneo4j-client
diff options
context:
space:
mode:
Diffstat (limited to 'testing/libneo4j-client')
-rw-r--r--testing/libneo4j-client/APKBUILD70
1 files changed, 70 insertions, 0 deletions
diff --git a/testing/libneo4j-client/APKBUILD b/testing/libneo4j-client/APKBUILD
new file mode 100644
index 0000000000..952e611118
--- /dev/null
+++ b/testing/libneo4j-client/APKBUILD
@@ -0,0 +1,70 @@
+# Contributor: Chris Leishman <chris@leishman.org>
+# Maintainer: Chris Leishman <chris@leishman.org>
+pkgname=libneo4j-client
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="Client library for the Neo4j graph database"
+url="https://github.com/cleishm/libneo4j-client"
+arch="all"
+license="ASL 2.0"
+depends="openssl"
+depends_dev="openssl-dev"
+makedepends="$depends_dev automake autoconf libtool check-dev doxygen pkgconfig fts fts-dev libedit-dev libcypher-parser-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc neo4j-client neo4j-client-doc"
+source="https://github.com/cleishm/libneo4j-client/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/"$pkgname-$pkgver"
+build() {
+ cd "$_builddir"
+ ./configure \
+ --prefix=/usr \
+ || return 1
+ make || return 1
+ make LIBS="-lfts" check || return 1
+ make doc || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ mkdir -p "$pkgdir"/usr/share/doc/libneo4j-client
+ mv doc/html/* "$pkgdir"/usr/share/doc/libneo4j-client/
+}
+
+doc() {
+ depends="$depends_doc"
+ pkgdesc="$pkgdesc (documentation)"
+ arch=${arch_doc:-"noarch"}
+ install_if="docs $pkgname=$pkgver-r$pkgrel"
+
+ if [ "X$subpkgname" = "Xlibneo4j-client-doc" ]; then
+ mkdir -p "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/share/doc "$subpkgdir"/usr/share/
+ elif [ "X$subpkgname" = "Xneo4j-client-doc" ]; then
+ mkdir -p "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/share/man "$subpkgdir"/usr/share/
+ find "$subpkgdir"/usr/share/man/ -type f | xargs gzip -9
+ else
+ die "Unknown doc package $pkgname"
+ fi
+
+ # remove if empty, ignore error (not empty)
+ rmdir "$pkgdir"/usr/share "$pkgdir"/usr 2>/dev/null
+ return 0
+}
+
+client() {
+ depends="libedit libcypher-parser"
+ pkgdesc="Command line shell for Neo4j"
+
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+
+ # remove if empty, ignore error (not empty)
+ rmdir "$pkgdir"/usr/bin "$pkgdir"/usr 2>/dev/null
+ return 0
+}
+md5sums="f405b5c6e60b503f971e900b5f060820 libneo4j-client-1.2.1.tar.gz"
+sha256sums="d5dfff272dc864c2c0874cac62df60a92161dc43c9d3faa02ab79ca6081cf470 libneo4j-client-1.2.1.tar.gz"
+sha512sums="3a9e573edadb2659317db053e95c0bb75be7a42092934c3d4ef859882c126e873acd63329ff58339969e846910a922f85563734379205a2309ea543c0c455b33 libneo4j-client-1.2.1.tar.gz"