summaryrefslogtreecommitdiff
path: root/repo/kconfig/kconfig.xibuild
blob: 8c83613df407c7a645ab3d6f9b671b069d4ff3ca (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
#!/bin/sh

NAME="kconfig"
DESC="Configuration system"

MAKEDEPS="doxygen extra-cmake-modules graphviz qt5-qtdeclarative qt5-qttools ninja"

PKG_VER=5.93.0
SOURCE="https://download.kde.org/stable/frameworks/${PKG_VER%.*}/kconfig-$PKG_VER.tar.xz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	cmake --build build
}

package() {
    cd $BUILD_ROOT
	DESTDIR="$PKG_DEST" cmake --install build
}