blob: 22fdf150d5ff2caf324d977efb6a49c7a0a1a800 (
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.10.5
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=('e912f80c378551305de6e8e0004a8a470b02e60aa1cc9de2c3fd4e8a8bcec44b'
'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"
}
|