summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b5c1e2d21658cc0691404e554c5e328c5b3b622 (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
# Maintainer: raindropqwq <raindropqwq@outlook.com>

pkgname=lobehub-desktop-bin
_pkgver=2.1.58
pkgver=${_pkgver}
pkgrel=1
pkgdesc="Desktop version of lobe-chat, an open-source, modern design AI chat framework."
arch=('x86_64')
url="https://github.com/lobehub/lobehub"
license=('Apache-2.0 WITH lobe-chat-exception')
makedepends=()
depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'at-spi2-core' 'util-linux-libs' 'libsecret')
conflicts=('lobehub-desktop' 'lobe-chat-appimage')
provides=('lobehub-desktop')

source=("lobehub-desktop-2.1.58.x86_64.rpm::https://github.com/lobehub/lobehub/releases/download/v${_pkgver}/lobehub-desktop-2.1.58.x86_64.rpm"
  "LICENSE::https://raw.githubusercontent.com/lobehub/lobehub/main/LICENSE"
  "lobehub-desktop.png::https://raw.githubusercontent.com/lobehub/lobehub/main/apps/desktop/resources/tray.png")
sha256sums=('f038f711a20dcf959331a2325e7600f686ec739e172cda08102ba97323bea1db'
  '790a8c42f10beb4f5e9122e05a8e65d5522de49f89ac69cd31063c0f2be93ea4'
  '38e5a907edee6a2188c7f49d6c56688c8c7e110a0dc2ccd6172129372f21efaf')

package() {
  cd "${pkgdir}"
  bsdtar -xf "${srcdir}/lobehub-desktop-2.1.58.x86_64.rpm"

  cd "${srcdir}"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 lobehub-desktop.png "${pkgdir}/usr/share/icons/hicolor/32x32/apps/lobehub-desktop.png"

  install -d "${pkgdir}/usr/bin"
  ln -sf /opt/LobeHub/lobehub-desktop "${pkgdir}/usr/bin/lobehub-desktop"
}