void-packages/srcpkgs/orientdb/template

34 lines
1.0 KiB
Bash

# Template file for 'orientdb'
pkgname=orientdb
version=3.1.11
revision=1
archs="i686 x86_64"
conf_files="/etc/${pkgname}/*"
depends="virtual?java-runtime"
short_desc="Distributed Graph Database"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://orientdb.org"
distfiles="https://s3.us-east-2.amazonaws.com/orientdb3/releases/${version}/orientdb-${version}.tar.gz"
checksum=73830279a5587de17ea4f5864598a0829bb03212d6cd36d185fe126a46086236
system_accounts="orientdb"
do_install() {
vmkdir 'usr/lib/orientdb'
vmkdir 'etc/orientdb'
vmkdir 'var/lib/orientdb'
vmkdir 'usr/bin'
vcopy config/* etc/orientdb/
vcopy databases/* var/lib/orientdb/
rm -rf databases
rm -rf config
rm -rf log
ln -s /usr/lib/orientdb/bin/console.sh "${DESTDIR}/usr/bin/orientdb-console"
ln -s /var/log/orientdb "${DESTDIR}/usr/lib/orientdb/log"
ln -s /etc/orientdb "${DESTDIR}/usr/lib/orientdb/config"
ln -s /var/lib/orientdb "${DESTDIR}/usr/lib/orientdb/databases"
vcopy * usr/lib/orientdb
vsv orientdb
vdoc "${FILESDIR}/README.voidlinux"
}