void-packages/srcpkgs/cmake-gui/template

42 lines
1.4 KiB
Bash

# Template file for 'cmake-gui'
pkgname=cmake-gui
reverts="3.20.0_1"
version=3.19.7
revision=2
wrksrc="cmake-${version}"
build_style=cmake
configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake -DCMAKE_BUILD_TYPE=None
-DBUILD_QtDialog=ON -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DKWSYS_LFS_WORKS=1
-DCMake_GUI_DISTRIBUTE_WITH_Qt_LGPL=3"
hostmakedepends="qt5-devel"
makedepends="jsoncpp-devel libarchive-devel libcurl-devel libuv-devel
ncurses-devel qt5-devel rhash-devel"
depends="desktop-file-utils shared-mime-info cmake>=${version}"
checkdepends="pax pkg-config"
short_desc="Cross-platform, open-source build system - Qt GUI"
maintainer="Nathan Owens <ndowens@artixlinux.org>"
license="BSD-3-Clause"
homepage="https://www.cmake.org"
distfiles="https://www.cmake.org/files/v${version%.*}/cmake-${version}.tar.gz"
checksum=58a15f0d56a0afccc3cc5371234fce73fcc6c8f9dbd775d898e510b83175588e
# XXX: cmake is broken if cmake was built with -GNinja
# https://bugs.gentoo.org/596460
export CMAKE_GENERATOR="Unix Makefiles"
make_cmd=make
do_install() {
# We are only interested in cmake-gui.
vbin build/bin/cmake-gui
for res in 32 64 128 ; do
vinstall Source/QtDialog/CMakeSetup${res}.png 0644 \
usr/share/icons/hicolor/${res}x${res}/apps/
done
vinstall Source/QtDialog/cmakecache.xml 0644 usr/share/mime
vinstall Source/QtDialog/cmake-gui.desktop 0644 usr/share/applications
vlicense Copyright.txt
}