desktop/grub2-editor/PKGBUILD
2017-11-20 09:11:33 +00:00

36 lines
962 B
Bash

pkgname=grub2-editor
_pkgname=kcm-grub2
pkgver=0.7.1
pkgrel=1
pkgdesc="A control module for configuring the GRUB2 bootloader from System Settings."
arch=('x86_64')
url="https://github.com/maz-1/grub2-editor/"
screenshot="http://ksmanis.files.wordpress.com/2013/10/kcm_grub451.png"
license=('GPL3')
depends=('kcoreaddons' 'ki18n' 'kauth' 'kconfigwidgets' 'kio' 'solid'
'imagemagick' 'hwinfo' 'librsvg' 'grub' 'os-prober')
makedepends=('extra-cmake-modules' 'kdoctools' 'cmake')
groups=('system')
source=("https://github.com/maz-1/grub2-editor/archive/${pkgver}.tar.gz")
md5sums=('8dd7de3da4629cf0f4f94b0b5d966d99')
build() {
mkdir -p build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONF_INSTALL_DIR=/etc \
-DBUILD_TESTING=OFF \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DLIB_INSTALL_DIR=lib
make
}
package() {
cd build
make DESTDIR=${pkgdir} install
}