blob: 5290422a58025a137a5a7dc9db24deb5128ea70a (
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
|
# Maintainer: tarball <bootctl@gmail.com>
pkgname=tika-server-bin
pkgver=2.9.2
pkgrel=1
pkgdesc='Apache Tika server — detect and extract metadata and text from over a thousand file types'
arch=(any)
url='https://tika.apache.org'
license=(Apache)
provides=(tika-server)
conflicts=(tika-server)
depends=('java-runtime-headless')
source=(
"https://dlcdn.apache.org/tika/$pkgver/tika-server-standard-$pkgver.jar"
'tika-server.service'
)
sha256sums=('379cdb319b80618d166057beecdb445b677d099c438ec026e5810239c1cd03d5'
'4bfed9962d831fa5de01c94f83ee4784c9dd371d72035125508a63debd161862')
noextract=("tika-server-standard-$pkgver.jar")
package_tika-server-bin() {
install -dm755 "$pkgdir/etc/default"
cat >"$pkgdir/etc/default/tika-server" <<EOF
HOST=localhost
PORT=9998
EOF
install -Dm0644 "tika-server-standard-$pkgver.jar" \
"$pkgdir/usr/lib/tika-server/tika-server.jar"
install -Dm644 "$srcdir/tika-server.service" \
"$pkgdir/usr/lib/systemd/system/tika-server.service"
}
|