blob: b7ce375b1e92ed28d7b2938c2353d3bf1dfae014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Andrew O'Neill <andrew at haunted dot sh>
pkgname=crate
pkgver=5.9.6
pkgrel=1
pkgdesc='Shared nothing, fully searchable, document oriented cluster datastore'
arch=('x86_64')
url='https://crate.io'
license=('Apache-2.0')
depends=('python')
install='crate.install'
source=("https://cdn.crate.io/downloads/releases/${pkgname}-${pkgver}.tar.gz"
"${pkgname}.service"
"${pkgname}.env")
sha256sums=('7b56b5e0d60dc9ce74bf2421eb66da1822f79e8afacb92babaaf3a41bc59238d'
'04b36b561498332b1b569e49b42d0bedf04141de07b7b16ff1b06072673cfd21'
'6182b8d527d52de4fc80023827518b2e8d873afdda873ef6bd2ed92b91982f75')
backup=('etc/crate/crate.yml'
'etc/crate/logging.yml')
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Create dirs
install -dm755 "${pkgdir}/etc/${pkgname}/"
install -dm755 "${pkgdir}/var/log/${pkgname}/"
install -dm755 "${pkgdir}/usr/share/${pkgname}/"
cp -R bin config jdk lib logs plugins "${pkgdir}/usr/share/${pkgname}/"
cp config/* "${pkgdir}/etc/${pkgname}"
# Documentation
install -dm755 "${pkgdir}/usr/share/doc/${pkgname}/"
cp NOTICE "${pkgdir}/usr/share/doc/${pkgname}/NOTICE"
cp CHANGES.txt "${pkgdir}/usr/share/doc/${pkgname}/CHANGES"
install -Dm644 "${srcdir}/crate.env" "${pkgdir}/etc/${pkgname}/crate.env"
install -Dm644 "${srcdir}/crate.service" "${pkgdir}/usr/lib/systemd/system/crate.service"
}
|