blob: ffaa2049c23c8518b35b5f3d53a64944469bbba0 (
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
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
# Contributor: Thomas Kuther <tom@kuther.net>
# Contributor: Alexandre Berthaud <alexandre at berthaud dot me>
_pkgname=kse
pkgname=keystore-explorer
pkgver=5.5.3
pkgrel=2
pkgdesc='KeyStore Explorer is a free GUI replacement for the Java command-line utilities keytool and jarsigner'
arch=('any')
url='https://keystore-explorer.org'
license=('GPL-3.0-or-later')
depends=('java-runtime<=21')
makedepends=('gradle' 'java-environment<=21')
conflicts=('keystore-explorer-bin' 'keystore-explorer-git')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kaikramer/${pkgname}/archive/v${pkgver}.tar.gz")
b2sums=('787b452846e7ba80210d3d58394f42e26c611dc22a041f3130663daebab6ec327f2ccc574a10912486097810b272120992870663665e4779ce69561c04acca29')
build() {
cd "${pkgname}-${pkgver}"/${_pkgname}
gradle clean build
}
package() {
cd "${pkgname}-${pkgver}"
# Extract package data
bsdtar -xf "${_pkgname}/build/distributions/${_pkgname}-${pkgver}.tar"
# JAR
install -dm755 "${pkgdir}/usr/share/java/${pkgname}"
install -Dm644 "${_pkgname}-${pkgver}/lib/"*.jar "${pkgdir}/usr/share/java/${pkgname}"
ln -sf . "${pkgdir}/usr/share/java/${pkgname}/lib"
# Binary
install -dm755 "${pkgdir}/usr/bin"
install -Dm755 "${_pkgname}-${pkgver}/bin/${_pkgname}" "${pkgdir}/usr/share/java/${pkgname}"
ln -sf "/usr/share/java/${pkgname}/lib/kse" "${pkgdir}/usr/bin/kse"
# Desktop
for size in 16 32 48 128 256 512; do
install -Dm644 "${_pkgname}/icons/${_pkgname}_${size}.png" \
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${_pkgname}.png"
done
install -Dm644 "${_pkgname}/icons/${_pkgname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg"
install -Dm644 "${_pkgname}/res/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# Doc
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "${_pkgname}/res/readme.txt" "${pkgdir}/usr/share/doc/${pkgname}/readme.txt"
}
|