diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-18 12:56:22 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-18 12:56:22 -0500 |
commit | 13984f725db156cbc952d0afe90f27da15a0b85d (patch) | |
tree | b3a39b75ecaecca11ee1525a99153a7606e460cb /cmake | |
download | spm_packages-13984f725db156cbc952d0afe90f27da15a0b85d.tar.gz |
Initial commit
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/build.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cmake/build.sh b/cmake/build.sh new file mode 100644 index 0000000..1159b5a --- /dev/null +++ b/cmake/build.sh @@ -0,0 +1,25 @@ +#!/bin/bash +name=cmake +version=3.15.5 +revision=0 +sources=( + "https://github.com/Kitware/CMake/releases/download/v${version}/${name}-${version}.tar.gz" +) +depends=() + + +function prepare() { + tar xf ${name}-${version}.tar.gz + cd ${name}-${version} +} + +function build() { + ./bootstrap --prefix="${_prefix}" + make -j${_maxjobs} +} + +function package() { + make install DESTDIR="${_pkgdir}" +} + + |