Files
alr-repo/extra-cmake-modules/alr.sh

46 lines
1.3 KiB
Bash

name='extra-cmake-modules'
version='6.19.0-rc1'
release='1'
desc='Extra modules and scripts for CMake'
desc_ru='Дополнительные модули и скрипты для CMake'
homepage='https://community.kde.org/Frameworks'
maintainer='Evgeniy Khramov <xpamych@yandex.ru>'
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
architectures=('all')
license=('LGPL')
deps=(
'cmake'
)
build_deps=(
'python3-sphinx'
)
build_deps_alt=("${build_deps[@]}" 'python3-module-requests' 'qt6-tools')
build_deps_arch=("${build_deps[@]}" 'python-requests' 'qt6-tools')
build_deps_debian=("${build_deps[@]}" 'python3-requests' 'qt6-tools-dev')
build_deps_fedora=("${build_deps[@]}" 'python3-requests' 'qt6-qttools')
build_deps_redos=("${build_deps[@]}" 'python3-requests' 'qt6-qttools')
build_deps_rhel=("${build_deps[@]}" 'python3-requests' 'qt6-qttools')
build_deps_rosa=("${build_deps[@]}" 'python3-requests' 'qt6-qttools')
sources=("https://download.kde.org/stable/frameworks/${version%.*}/$name-$version.tar.xz")
checksums=('SKIP')
build() {
cmake -B build -S $name-$version \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_HTML_DOCS=ON \
-DBUILD_QTHELP_DOCS=ON
cmake --build build -j$(($(nproc) - 1))
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
files() {
files-find-share "ECM"
files-find-share "doc"
}