42 lines
1.4 KiB
Bash
42 lines
1.4 KiB
Bash
# Template file for 'cmake-gui'
|
|
pkgname=cmake-gui
|
|
version=3.24.3
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DCMAKE_DOC_DIR=/share/doc/cmake
|
|
-DSPHINX_MAN=1 -DCMAKE_MAN_DIR=/share/man
|
|
-DBUILD_QtDialog=ON -DCMAKE_USE_SYSTEM_LIBRARIES=ON -DKWSYS_LFS_WORKS=1"
|
|
hostmakedepends="qt6-base-devel python3-Sphinx"
|
|
makedepends="jsoncpp-devel libarchive-devel libcurl-devel libuv-devel
|
|
ncurses-devel qt6-base-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="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.cmake.org"
|
|
distfiles="https://www.cmake.org/files/v${version%.*}/cmake-${version}.tar.gz"
|
|
checksum=b53aa10fa82bff84ccdb59065927b72d3bee49f4d86261249fc0984b3b367291
|
|
|
|
do_check() {
|
|
cd build
|
|
# https://gitlab.kitware.com/cmake/cmake/-/issues/23885
|
|
ctest -E RunCMake.SymlinkTrees
|
|
}
|
|
|
|
do_install() {
|
|
# We are only interested in cmake-gui.
|
|
vbin build/bin/cmake-gui
|
|
vman build/Utilities/Sphinx/man/cmake-gui.1
|
|
|
|
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
|
|
}
|