summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a88fb563326a39041429ad85bec2728a4a068c8a (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
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: AutoExplore Oy <info@autoexplore.ai>
# Generated by scripts/update-aur.sh. Edit this template, not the AUR checkout.
pkgname=gitcomet-bin
pkgver=0.3.4
pkgrel=1
_version=0.3.4
pkgdesc='Fast, resource-efficient Git GUI written in Rust'
arch=('x86_64' 'aarch64')
url='https://gitcomet.dev/'
license=('AGPL-3.0-only')
provides=("gitcomet=$pkgver")
conflicts=('gitcomet')
# Linked libraries from scripts/check-linux-runtime-deps.sh, plus git and icons.
depends=(
  'git'
  'glibc'
  'libgcc'
  'fontconfig'
  'libxcb'
  'libxkbcommon'
  'libxkbcommon-x11'
  'zlib'
  'hicolor-icon-theme'
  # Arch has no either/or dependencies. EGL guarantees a renderer is available;
  # the preferred Vulkan renderer remains optional, as do native Wayland sessions.
  'libglvnd'
)
optdepends=(
  'vulkan-icd-loader: preferred Vulkan renderer (otherwise uses EGL)'
  'wayland: native Wayland sessions (otherwise uses X11)'
  'git-lfs: Git LFS support'
  'gnupg: commit signing and verification'
  'openssh: SSH remotes and commit signing'
  'xdg-utils: open files and links in external applications'
  'xdg-desktop-portal: file pickers and desktop settings'
  'noto-fonts-cjk: CJK font coverage'
  'noto-fonts-emoji: emoji font coverage'
)
options=('!strip' '!debug')
source=("gitcomet-source-v${_version}.tar.gz::https://github.com/Auto-Explore/GitComet/archive/refs/tags/v${_version}.tar.gz")
source_x86_64=("https://github.com/Auto-Explore/GitComet/releases/download/v${_version}/gitcomet-v${_version}-linux-x86_64.tar.gz")
source_aarch64=("https://github.com/Auto-Explore/GitComet/releases/download/v${_version}/gitcomet-v${_version}-linux-arm64.tar.gz")
sha256sums=('cb2b1e96d6c346265582e520514b18598fd1ac0d41f0be2358e0beb081317eba')
sha256sums_x86_64=('1836706ce321e8da474e62d8678d6d6d25abcbb882bed90dcd5deb43715cad67')
sha256sums_aarch64=('817fdb24b07b4ff0c13374447e7293a2c29ce4fb90d2861738115d4e1635094e')

package() {
  local binary_arch="$CARCH" size
  [[ "$CARCH" != aarch64 ]] || binary_arch=arm64

  install -Dm755 "$srcdir/gitcomet-v${_version}-linux-${binary_arch}/gitcomet" \
    "$pkgdir/usr/bin/gitcomet"
  cd "$srcdir/GitComet-${_version}"
  install -Dm644 assets/linux/gitcomet.desktop "$pkgdir/usr/share/applications/gitcomet.desktop"
  for size in 32 48 128 256 512; do
    install -Dm644 "assets/linux/hicolor/${size}x${size}/apps/gitcomet.png" \
      "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/gitcomet.png"
  done
  install -Dm644 LICENSE-AGPL-3.0 "$pkgdir/usr/share/licenses/$pkgname/LICENSE-AGPL-3.0"
  install -Dm644 NOTICE "$pkgdir/usr/share/licenses/$pkgname/NOTICE"
  install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}