summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44071fb3f320df73dc1e280a021d8c1c851c7803 (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
# Maintainer: Matthias Mailänder <matthias@mailaender.name>

pkgname=alpaka-git
pkgver=r304.df0b0c5
pkgrel=1
pkgdesc='Kirigami client for Ollama'
url='https://apps.kde.org/alpaka/'
arch=(x86_64)
license=(GPL-3.0-or-later)
depends=(gcc-libs
         glibc
         qt6-base
         kcoreaddons
         kconfig
         kirigami
         ki18n
         kstatusnotifieritem
         kwindowsystem
         kxmlgui
         kcrash
         ollama
)
makedepends=(extra-cmake-modules)
groups=(kde-applications
        kde-utilities)
source=(git+https://invent.kde.org/utilities/alpaka.git)
sha256sums=('SKIP')

pkgver() {
  cd alpaka
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cmake -B build -S alpaka \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}