44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
# Template file for 'cmake-gui'
|
|
pkgname=cmake-gui
|
|
version=3.18.2
|
|
revision=1
|
|
wrksrc="cmake-${version}"
|
|
build_style=cmake
|
|
configure_args="
|
|
-DBUILD_QtDialog=ON
|
|
-DCMAKE_USE_SYSTEM_LIBARCHIVE=ON
|
|
-DCMAKE_USE_SYSTEM_CURL=ON
|
|
-DCMAKE_USE_SYSTEM_JSONCPP=ON
|
|
-DCMAKE_USE_SYSTEM_LIBUV=ON
|
|
-DCMAKE_USE_SYSTEM_LIBRHASH=ON"
|
|
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"
|
|
checkdepends="pax pkg-config"
|
|
short_desc="Cross-platform, open-source build system - Qt GUI"
|
|
maintainer="Nathan Owens <ndowens04@gmail.com>"
|
|
license="LGPL-2.1-or-later, GPL-3.0-or-later, BSD-3-Clause"
|
|
homepage="https://www.cmake.org"
|
|
distfiles="https://www.cmake.org/files/v${version%.*}/cmake-${version}.tar.gz"
|
|
checksum=5d4e40fc775d3d828c72e5c45906b4d9b59003c9433ff1b36a1cb552bbd51d7e
|
|
|
|
do_install() {
|
|
# We are only interested in cmake-gui.
|
|
vbin build/bin/cmake-gui
|
|
|
|
for res in 32 64 128 ; do
|
|
vmkdir usr/share/icons/hicolor/${res}x${res}/apps
|
|
vcopy Source/QtDialog/CMakeSetup${res}.png usr/share/icons/hicolor/${res}x${res}/apps/CMakeSetup.png
|
|
done
|
|
|
|
vmkdir usr/share/mime
|
|
vmkdir usr/share/applications
|
|
vcopy Source/QtDialog/cmakecache.xml usr/share/mime
|
|
vcopy Source/QtDialog/cmake-gui.desktop usr/share/applications
|
|
|
|
for i in Licenses/*.txt Copyright.txt ; do
|
|
vlicense $i
|
|
done
|
|
}
|