31 lines
779 B
Plaintext
31 lines
779 B
Plaintext
# Description: A cross-platform, open-source make system.
|
|
# URL: http://www.cmake.org/
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
# Depends on: curl libarchive expat ncurses
|
|
|
|
name=cmake
|
|
version=3.8.0
|
|
release=1
|
|
source=(http://www.cmake.org/files/v${version%.*}/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
sed -i Source/CMakeInstallDestinations.cmake \
|
|
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
|
|
|
|
./bootstrap \
|
|
--prefix=/usr \
|
|
--system-curl \
|
|
--system-expat \
|
|
--system-zlib \
|
|
--system-bzip2 \
|
|
--system-libarchive \
|
|
--no-system-librhash
|
|
make
|
|
make DESTDIR=$PKG install
|
|
rm -r $PKG/usr/doc
|
|
|
|
ln -sf $name $PKG/usr/share/$name-${version%.*}
|
|
}
|