blob: 77c04187453021d489fc054e20abb3ca962bc887 (
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
|
# Maintainer: Kinn Coelho Juliao <kinncj@protonmail.com>
pkgname=safe-discover
pkgver=0.2.1
pkgrel=1
pkgdesc='Kirigami-based package management GUI for Arch Linux (pacman, AUR, Flatpak, fwupd)'
arch=('x86_64' 'aarch64')
license=('GPL-3.0-or-later')
url='https://github.com/kinncj/Safe-Discover'
makedepends=(
'cmake'
'extra-cmake-modules'
'gcc'
)
depends=(
'qt6-base'
'qt6-declarative'
'kirigami'
'kirigami-addons'
'kcoreaddons'
'ki18n'
'kconfig'
'knewstuff'
'pacman'
'polkit'
)
optdepends=(
'paru: AUR package support'
'flatpak: Flatpak application support'
'fwupd: Firmware update support'
'konsole: Terminal execution mode for AUR builds'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP')
build() {
cmake -B build -S "Safe-Discover-${pkgver}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=OFF
cmake --build build -j"$(nproc)"
}
check() {
cmake -B build -S "Safe-Discover-${pkgver}" \
-DBUILD_TESTING=ON
cmake --build build -j"$(nproc)"
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|