summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0dd6e9898a7eadb726fa95b06c9280a615125c61 (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
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
# based on grub2-editor-frameworks: maz-1 < ohmygod19993 at gmail dot com >
#

pkgname=grub2-editor-frameworks-git
_product=grub2-editor
pkgver=0.8.1.r0.g2f7de2c
pkgrel=2
pkgdesc="A KDE Control Module for configuring the GRUB2 bootloader. Unofficial KF5 port."
arch=('x86_64')
url='https://github.com/maz-1/grub2-editor'
license=('GPL')
provides=(grub2-editor)
conflicts=(grub2-editor)
depends=('grub' 'hwinfo' 'imagemagick' 'qt5-base' 'kio' 'ki18n' 'kauth' 'kconfigwidgets' 'solid')
makedepends=('cmake' 'ninja' 'extra-cmake-modules' 'git' 'kdoctools')
optdepends=('os-prober: Create entries for other operating systems')
source=("git+https://github.com/maz-1/${_product}.git")
groups=('plasma')
sha256sums=('SKIP')

pkgver() {
  cd "${_product}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  rm -rfv build
  mkdir -pv build
  cd build
  cmake "../${_product}" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_INSTALL_DIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DSYSCONF_INSTALL_DIR=/etc \
    -DBUILD_TESTING=OFF \
    -G Ninja
}

build() {
  cd build
  ninja
}

package() {
  cd build
  DESTDIR="$pkgdir" ninja install
}