opt/cmake/Pkgfile

36 lines
888 B
Plaintext
Raw Normal View History

2020-12-17 14:07:55 +01:00
# Description: A cross-platform, open-source make system
2021-02-01 10:20:45 +01:00
# URL: https://www.cmake.org/
2020-12-17 14:07:55 +01:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: curl libarchive expat ncurses
# Optional: python3-sphinx
2008-10-14 12:26:23 +02:00
name=cmake
2021-04-30 11:42:31 +02:00
version=3.20.2
release=1
source=(https://cmake.org/files/v${version%.*}/$name-$version.tar.gz)
2008-10-14 12:26:23 +02:00
build() {
2020-12-17 14:07:55 +01:00
cd $name-$version
2020-12-17 14:07:55 +01:00
sed -i Source/CMakeInstallDestinations.cmake \
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
2020-12-17 14:07:55 +01:00
./bootstrap \
--prefix=/usr \
--system-curl \
--system-expat \
--system-zlib \
--system-bzip2 \
--system-libarchive \
--system-zstd \
--no-system-librhash \
--parallel=${JOBS:-1} \
$(prt-get isinst python3-sphinx >/dev/null && echo --sphinx-man)
2020-12-17 14:07:55 +01:00
make
make DESTDIR=$PKG install
rm -r $PKG/usr/{doc,share/cmake/Help}
2020-12-17 14:07:55 +01:00
ln -sf $name $PKG/usr/share/$name-${version%.*}
2008-10-14 12:26:23 +02:00
}