summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26932ee369ce69dd7ca80ba5af78534f71783165 (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
# Maintainer: tarball <bootctl@gmail.com>

pkgname='tika-bin'
pkgver=2.9.2
pkgrel=1
pkgdesc='Apache Tika — detect and extract metadata and text from over a thousand file types'
arch=(any)
url='https://tika.apache.org'
license=(Apache)
provides=(tika)
conflicts=(tika)
depends=('java-runtime')
noextract=("tika-app-$pkgver.jar")
source=(
  "https://dlcdn.apache.org/tika/$pkgver/tika-app-$pkgver.jar"
  'tika.sh'
  'tika.desktop'
  'tika.svg'
)
sha256sums=('87e06f88c801fcb2beae5f15e707241edb14da468a154ad78be4e31ff982c3da'
            'caf002fe624623a6598e1753e42400e58f951d37cdf2410aaf0fd8e6343bc5c5'
            '490cfc11aa05722a7831a3938a63df39b9d4d08e47e88b973479fffac17ce246'
            'ccae8a7ff8b30e73511e11f5c33facbf87d7e47db8cc86e14a52116ac96da9b7')

package() {
  install -Dm644 "tika-app-$pkgver.jar" \
    "$pkgdir/usr/lib/tika/tika-app.jar"

  install -Dm755 tika.sh "$pkgdir"/usr/bin/tika
  install -Dm644 tika.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/tika.svg"
  install -Dm644 tika.desktop "$pkgdir"/usr/share/applications/tika.desktop
}