blob: 3ab127de03b033df8fd4f2eb93ab3b97a5e3d0eb (
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: Francisco Guimaraes <francisco at gmail dot com>
pkgname=kubenav
pkgver=1.2.0
pkgrel=1
pkgdesc="kubenav is the navigator for your Kubernetes clusters right in your pocket"
arch=("x86_64")
url="https://kubenav.io"
license=("custom")
makedepends=("imagemagick")
# We cannot strip the AppImage binary otherwise it will cause an invalid binary
options=(!strip)
source=(
"${pkgname}.png"
"${pkgname}.desktop"
"https://raw.githubusercontent.com/${pkgname}/${pkgname}/master/LICENSE"
"${pkgname}::https://github.com/${pkgname}/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}-linux-amd64.AppImage"
)
sha256sums=(
"517ed89a60aff62e88728a7dde46aa379dc13298ba8d9603b22e0f7c2d7acf44"
"d3237a646a381281e7b34fea6098b95a1ce44c22f08659e74d18b47af645b1e3"
"0bfdaf7208f7267c5ff99d52d5ee69a2edf2c3ff677a7dba80a18a230645dbbe"
"736d6737bc3371198c699b6eedd31b39b2ba3f34bd932188523a91ad2e7a2e01"
)
iconsha256sum=${sha256sums[0]}
tmpdesktopfile="/tmp/${pkgname}.desktop"
package() {
install -Dm755 "${srcdir}/${pkgname}" "${pkgdir}"/usr/bin/${pkgname}
sed "s/Icon=kubenav/Icon=${iconsha256sum}/g" "${srcdir}/${pkgname}.desktop" > "${tmpdesktopfile}"
install -Dm644 "${tmpdesktopfile}" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
do
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
convert "${srcdir}/${pkgname}.png" -strip -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/${iconsha256sum}.png"
done
}
|