Files
chromebrew/packages/tika.rb
chromebrew-actions[bot] 9e9b3107a3 updater-tika-3.2.3 — tika → 3.2.3 (#12854)
* Add unbuilt tika to updater-tika-3.2.3

* updater-tika-3.2.3: Build Run on linux/arm/v7.

* updater-tika-3.2.3: Build Run on linux/amd64.

---------

Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2025-09-19 02:06:40 +00:00

36 lines
1.0 KiB
Ruby

require 'package'
class Tika < Package
description 'The Apache Tika™ toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF).'
homepage 'https://tika.apache.org/'
version '3.2.3'
license 'Apache-2.0'
compatibility 'aarch64 armv7l x86_64'
source_url "https://dlcdn.apache.org/tika/#{version}/tika-app-#{version}.jar"
source_sha256 '80c20c085e2c0976bbd55969e5bf90dda2b7155db31068639fbc871d0369e7e7'
depends_on 'openjdk17'
depends_on 'libx11'
depends_on 'libxext'
depends_on 'libxrender'
depends_on 'libxtst'
no_compile_needed
def self.build
File.write 'tika.sh', <<~EOF
#!/bin/bash
java -jar #{CREW_PREFIX}/share/tika/tika-app-#{version}.jar
EOF
end
def self.install
FileUtils.install "tika-app-#{version}.jar", "#{CREW_DEST_PREFIX}/share/tika/tika-app-#{version}.jar", mode: 0o644
FileUtils.install 'tika.sh', "#{CREW_DEST_PREFIX}/bin/tika", mode: 0o755
end
def self.postinstall
ExitMessage.add "\nType 'tika' to get started.\n"
end
end