-
-
Save NicoHood/db163576c600205987ca87144bd493f0 to your computer and use it in GitHub Desktop.
arangodb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de> | |
# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161 | |
# Contributor: Mike Williamson <mike at korora dot ca> | |
pkgname=arangodb | |
pkgver=3.1.12 | |
pkgrel=1 | |
pkgdesc="A multi-model NoSQL database, combining key-value, document and graph data models." | |
arch=("i686" "x86_64") | |
url="https://www.arangodb.com/" | |
license=('APACHE') | |
depends=('openssl' 'systemd' 'curl' 'zlib') | |
makedepends=("cmake" "python2") | |
install=arangodb.install | |
source=("https://www.arangodb.com/repositories/Source/ArangoDB-${pkgver}.tar.bz2" | |
"https://www.arangodb.com/repositories/Source/ArangoDB-${pkgver}.tar.bz2.asc" | |
"arangodb.service" | |
"arangodb-tmpfile.conf") | |
validpgpkeys=('CD8CB0F1E0AD5B52E93F41E7EA93F5E56E751E9B') # Frank Celler (ArangoDB Debian Repository) <info@arangodb.com> | |
sha512sums=('493be889b20f644823891e6c262e6a428fe6d3d447275e5da9313b300a1ab8ce35aefa58807b122e2b2490ef6f9130be35e17078ed7126fd343a0a413591288a' | |
'SKIP' | |
'90d832ac14b525e436a4256ee432b5d66750625a4e0adbd214c326526044f0139a6302fd5398ae2b2a7266a5536a990e1683736ae25829647a9ca9b48cb7be1f' | |
'4dc6f0a18be2e759b89693a54f3376f52d8b646978c81f0f7069d8ed2c6d7123777a9709d000a5467a4f927b8befb5f472d933eb843db842cf853321a0ad5e7c') | |
build() { | |
# TODO add python2 to path temporary? | |
cd "${srcdir}/ArangoDB-${pkgver}" | |
mkdir -p build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DCMAKE_INSTALL_DATADIR=/usr/share \ | |
-DBUILD_SHARED_LIBS:BOOL=ON \ | |
.. | |
make | |
} | |
package() { | |
cd "${srcdir}/ArangoDB-${pkgver}/build" | |
make DESTDIR="${pkgdir}" install | |
# User creation example: https://git.archlinux.org/svntogit/community.git/tree/trunk/sysusers-synapse.conf?h=packages/matrix-synapse | |
# https://aur.archlinux.org/cgit/aur.git/tree/memlockd-sysusers.conf?h=memlockd | |
# TODO how to properly package systemd and temp file? | |
install -Dm644 "${srcdir}/arangodb-tmpfile.conf" "${pkgdir}"/usr/lib/tmpfiles.d/arangodb.conf | |
#https://github.com/arangodb/arangodb/blob/master/Installation/systemd/arangodb3.service.in | |
# TODO service needs to be fixed! | |
install -Dm644 "${srcdir}/ArangoDB-${pkgver}/Installation/systemd/arangodb3.service.in" "${pkgdir}/usr/lib/systemd/system/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment