blob: 2487af6487cb7971c65eb7689af57b72d896f77a (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=kpmcore-git
pkgver=24.04.70.r1497.801b291
pkgrel=1
pkgdesc='Library for managing partitions. Common code for KDE Partition Manager and other projects. (GIT version)'
arch=('x86_64')
url='https://invent.kde.org/system/kpmcore.git'
license=('GPL2')
depends=(
'gcc-libs' # libgcc_s.so libstdc++.so
'glibc' # libc.so
'util-linux-libs' 'libblkid.so'
'device-mapper'
'qt6-base' # libQt6Core.so libQt6DBus.so libQt6Gui.so libQt6Widgets.so
'kcoreaddons' # libKF6CoreAddons.so
'kwidgetsaddons' # libKF6WidgetsAddons.so
'ki18n' # libKF6I18n.so
'polkit-qt6' # libpolkit-qt6-core-1.so
)
makedepends=(
'extra-cmake-modules'
'git'
'python'
)
optdepends=(
'btrfs-progs: BTFRS support'
'e2fsprogs: ext2/3/4 support'
'xfsprogs: XFS support'
'jfsutils: JFS support'
'hfsprogs: HFS support'
'cryptsetup: dm-crypt support'
'reiserfsprogs: Reiser support'
'reiser4progs: Reiser4 support'
'ntfs-3g: NTFS support'
'dosfstools: FAT32 support'
'fatresize: FAT resize support'
'f2fs-tools: F2FS support'
'exfat-utils: exFAT support'
'exfatprogs: exFAT alternative support'
'nilfs-utils: nilfs support'
'udftools: UDF support'
'zfs-utils: ZSF support'
'lvm2: lvm2 support'
'nilfs-utils: nilfs support'
# 'nilfs2-utils: nilfs2 support'
# 'ocfs2-tools: ocfs2 support'
)
conflicts=('kpmcore')
provides=(
'kpmcore'
'libkpmcore.so'
)
source=('git+https://invent.kde.org/system/kpmcore.git')
sha256sums=('SKIP')
options=('debug')
pkgver() {
cd kpmcore
_ver="$(cat CMakeLists.txt | grep -m3 -e MAJOR -e MINOR -e RELEASE | grep -o "[[:digit:]]*" | paste -sd'.')"
echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cmake -S kpmcore -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
-DBUILD_TESTING=ON
cmake --build build
}
_check() { # disable due need polkit password
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|