# Contributor: tunght13488 pkgname=kibana4 _pkgname=kibana pkgver=4.6.4 pkgrel=1 pkgdesc="browser based analytics and search dashboard for Elasticsearch. Please note; this package replaces the distributed precompiled binary 'node' (this is a fork from kibana which is on v5)" arch=('any') url="https://www.elastic.co/products/kibana" license=('apache') depends=('nodejs') optdepends=('elasticsearch>=2.4') conflicts=('kibana') backup=('etc/elasticsearch/kibana/kibana.yml') options=('!strip') source=( "https://download.elasticsearch.org/kibana/kibana/${_pkgname}-${pkgver}-linux-x86_64.tar.gz" kibana.service) sha256sums=('05699ab7810d1291d555b429081e0299575270e0eb06491af44ba76b355acead' 'SKIP') package() { cd "${pkgdir}" install -dm755 usr/lib/kibana install -Dm644 "${srcdir}/kibana.service" usr/lib/systemd/system/kibana.service cd "${srcdir}/${_pkgname}-${pkgver}-linux-x86_64" install -Dm644 config/kibana.yml "${pkgdir}"/etc/elasticsearch/kibana/kibana.yml rm -R ./node/ chmod o+w optimize/ cp -Rp * "${pkgdir}"/usr/lib/kibana/ }