opt/cmake/Pkgfile

47 lines
1.5 KiB
Plaintext
Raw Normal View History

2008-10-14 12:26:23 +02:00
# Description: A cross-platform, open-source make system.
# URL: http://www.cmake.org/
2017-08-30 23:01:37 +02:00
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
2012-06-27 10:24:16 +02:00
# Depends on: curl libarchive expat ncurses
2020-04-27 12:55:50 +02:00
# Optional: python3-sphinx
2008-10-14 12:26:23 +02:00
name=cmake
2020-04-27 12:55:50 +02:00
version=3.17.1
release=1
2020-04-27 12:55:50 +02:00
source=(https://cmake.org/files/v${version%.*}/$name-$version.tar.gz
ccmake.1 cmake.1 cpack.1 ctest.1 cmake-buildsystem.7 cmake-commands.7
cmake-compile-features.7 cmake-developer.7 cmake-env-variables.7
cmake-file-api.7 cmake-generator-expressions.7 cmake-generators.7
cmake-language.7 cmake-modules.7 cmake-packages.7 cmake-policies.7
cmake-properties.7 cmake-qt.7 cmake-server.7 cmake-toolchains.7
cmake-variables.7 cpack-generators.7)
2008-10-14 12:26:23 +02:00
build() {
cd $name-$version
2020-04-27 12:55:50 +02:00
[ -e '/usr/bin/sphinx-autogen' ] && PKGMK_CMAKE+=' -sphinx-man'
sed -i Source/CMakeInstallDestinations.cmake \
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
2020-04-27 12:55:50 +02:00
./bootstrap ${PKGMK_CMAKE} \
--prefix=/usr \
--system-curl \
--system-expat \
--system-zlib \
--system-bzip2 \
--system-libarchive \
--no-system-librhash
2020-04-27 12:55:50 +02:00
make
make DESTDIR=$PKG install
rm -r $PKG/usr/doc
ln -sf $name $PKG/usr/share/$name-${version%.*}
2020-04-27 12:55:50 +02:00
if [ ! -e '/usr/bin/sphinx-autogen' ]; then
install -dm755 $PKG/usr/man/man{1,7}
install -m644 -t $PKG/usr/man/man1 $SRC/{ccmake,cmake,cpack,ctest}.1
install -m644 -t $PKG/usr/man/man7 $SRC/*.7
fi
2008-10-14 12:26:23 +02:00
}