summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Nüßlein2017-07-05 14:21:00 +0200
committerAndreas Nüßlein2017-07-05 14:21:00 +0200
commita0d88a24a4769a2d4fbf4040f33d9776a7b242e9 (patch)
tree0fd5cfee87f3b1bbe2f3908879143b9c2ad03bd0
downloadaur-a0d88a24a4769a2d4fbf4040f33d9776a7b242e9.tar.gz
initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD57
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ca77c6e8fe2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = aerospike-tools-bin
+ pkgdesc = Tools for Aerospike
+ pkgver = 3.13.0.1
+ pkgrel = 1
+ url = http://www.aerospike.com/
+ arch = x86_64
+ license = AGPLv3
+ makedepends = binutils
+ depends = python2-argparse
+ depends = python2-bcrypt
+ depends = python2-pyopenssl
+ depends = python2-pexpect
+ depends = python2-ply
+ source = http://www.aerospike.com/download/tools/3.13.0.1/artifact/ubuntu16
+ sha256sums = b08b9e9fc5fea95f7e851559790cae8a4e5c025847c83b2e4729e7cb08a327dd
+
+pkgname = aerospike-tools-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..af462c3b7c6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+#Maintainer: nutz <nutz[äT]noova(O)de>
+
+pkgname=aerospike-tools-bin
+pkgrealname=aerospike-tools
+pkgver=3.13.0.1
+pkgrel=1
+pkgdesc="Tools for Aerospike"
+arch=('x86_64')
+url="http://www.aerospike.com/"
+license=('AGPLv3')
+depends=(
+ 'python2-argparse'
+ 'python2-bcrypt'
+ 'python2-pyopenssl'
+ 'python2-pexpect'
+ 'python2-ply'
+)
+makedepends=('binutils')
+sha256sums=('b08b9e9fc5fea95f7e851559790cae8a4e5c025847c83b2e4729e7cb08a327dd')
+source=("http://www.aerospike.com/download/tools/${pkgver}/artifact/ubuntu16"
+ )
+
+prepare() {
+ cd ${srcdir}/${pkgrealname}-${pkgver}-ubuntu16.04/
+ ar xv ${pkgrealname}-${pkgver}.ubuntu16.04.x86_64.deb 1>/dev/null
+ tar xf data.tar.xz
+}
+
+#pkgver() {}
+
+#build() {}
+
+#check() {}
+
+package() {
+ mkdir -p -m 755 "${pkgdir}/opt/aerospike/bin"
+ mkdir -p -m 755 "${pkgdir}/usr/bin"
+ cd ${srcdir}/${pkgrealname}-${pkgver}-ubuntu16.04/opt/aerospike
+ for file in $(ls bin); do
+ # TODO: aql bla.
+ install -m 0755 bin/$file "${pkgdir}/opt/aerospike/bin/${file}"
+ ln -s "/opt/aerospike/bin/${file}" "${pkgdir}/usr/bin/${file}"
+ sed -i "1s/python/python2/" ${pkgdir}/opt/aerospike/bin/${file}
+ done
+
+ mkdir -p -m 755 "${pkgdir}/opt/aerospike/lib/python"
+ install -m 0755 lib/python/citrusleaf.py "${pkgdir}/opt/aerospike/lib/python/citrusleaf.py"
+
+
+ for path in $(find doc/ examples/ | sort); do
+ if [ -d ${path} ]; then
+ mkdir -p -m 755 "${pkgdir}/opt/aerospike/${path}"
+ else
+ install -m 0644 $path "${pkgdir}/opt/aerospike/${path}"
+ fi
+ done
+} \ No newline at end of file