opt/cmake/Pkgfile

33 lines
879 B
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/
2010-03-04 08:45:54 +01:00
# Maintainer: Jose V Beneyto, sepen at crux dot nu
2008-10-14 12:26:23 +02:00
# Packager: Mark Rosenstand, mark at borkware dot net
2012-06-27 10:24:16 +02:00
# Depends on: curl libarchive expat ncurses
2008-10-14 12:26:23 +02:00
name=cmake
2015-08-18 09:50:54 +02:00
version=3.3.1
2012-11-14 15:47:41 +01:00
release=1
2015-01-02 15:46:32 +01:00
source=(http://www.cmake.org/files/v${version%.*}/$name-$version.tar.gz)
2008-10-14 12:26:23 +02:00
build() {
2012-01-04 10:35:11 +01:00
cd $name-$version
# fix installation path
sed -i Source/CMakeInstallDestinations.cmake \
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
./bootstrap \
--prefix=/usr \
--system-libs \
2014-08-05 17:38:47 +02:00
--system-libarchive \
--no-system-jsoncpp \
--parallel=$(sed -e 's/.*-j *\([0-9]\+\).*/\1/' <<< $MAKEFLAGS)
2008-10-14 12:26:23 +02:00
make
make DESTDIR=$PKG install
rm -r $PKG/usr/doc
# keep versioned dir for compatibility
ln -sf $name $PKG/usr/share/$name-${version%.*}
2008-10-14 12:26:23 +02:00
}