summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22f8cf96f95d13d8449b1a13faaecc513fe9cb3d (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
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
# Contributor: Solomon Choina <shlomochoina@gmail.com>
#
# Pull Requests are welcome: https://github.com/yurikoles-aur/kcm-grub2-git

pkgname=kcm-grub2-git
_product="${pkgname%-git}"
pkgver=0.6.4.r269.g6262f8d
pkgrel=1
pkgdesc="A KDE Control Module for configuring the GRUB2 bootloader"
arch=('x86_64')
url='https://invent.kde.org/system/kcm-grub2'
license=('GPL-3.0-or-later')
depends=(
    'grub'
    'hwinfo'
    'kcmutils5'
    'libmagick'
)
makedepends=(
    'cmake'
    'extra-cmake-modules'
    'git'
    'kdoctools5'
)

conflicts=('grub2-editor-frameworks')
provides=('grub2-editor-frameworks')
optdepends=('os-prober: To detect other OSes when generating grub.cfg in BIOS systems')
source=("${_product}"::"git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_product}"
  # cutting off 'v' prefix that presents in the git tag
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    export PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig'
    cmake -B build -S "${_product}" \
       -D BUILD_TESTING=OFF \
       -Wno-dev

   cmake --build build
}

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