summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ed2e0ea642801aae6b2e14c5bcccfbd9392145e (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
# Maintainer: flan_suse <windows2linux_AT_zoho_DOT_com>

# This prebuilt binary includes HEIF support.

pkgname=krokiet-bin
pkgver=8.0.0
pkgrel=2
pkgdesc='Find and manage duplicate files, empty folders, similar images, and other "lint" (Slint GUI of Czkawka, with HEIF support)'
arch=('x86_64')
url='https://github.com/qarmin/czkawka'
license=('MIT')
provides=('krokiet')
conflicts=('krokiet')
makedepends=('gendesk')
depends=('libheif')
source=("${pkgname}-${pkgver}::https://github.com/qarmin/czkawka/releases/download/${pkgver}/linux_${pkgname%-bin}_gui_heif_libraw"
        "LICENSE-${pkgver}::https://github.com/qarmin/czkawka/raw/${pkgver}/${pkgname%-bin}/LICENSE"
        "${pkgname}-${pkgver}.png::https://raw.githubusercontent.com/qarmin/czkawka/7.0.0/${pkgname%-bin}/icons/logo.png")

sha256sums=('950c6416b42d8c3049ad20b24ec3b91801b7f651cddb246fa49da50f7ce1b26d'
            '21053c41478ede01bcacd3e2306410b4555a236d189aa0492d9387dee70ff4e0'
            'b95b69cf799b047fa9a234c28236afc0bbef4d90327034a5de9ead3d60ea0e9a')

package() {
  install -Dm755 ${pkgname}-${pkgver} "${pkgdir}/usr/bin/${pkgname%-bin}"
  install -Dm644 LICENSE-${pkgver} "${pkgdir}/usr/share/licenses/${pkgname%-bin}/LICENSE"
  install -Dm644 ${pkgname}-${pkgver}.png "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
  gendesk -f -n --pkgname "${pkgname%-bin}" \
          --pkgdesc "$pkgdesc" \
          --name "Krokiet" \
          --comment "$pkgdesc" \
          --exec "${pkgname%-bin}" \
          --categories 'Utility;Application' \
          --icon "${pkgname%-bin}"
  install -Dm644 "${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
}