blob: 79f6aa850b1361c1bae87bdc9b0e8f51db95003f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cmake
pkgver=3.1.1
pkgrel=0
pkgdesc="CMake is a cross-platform open-source make system"
url="http://www.cmake.org"
arch="all"
license="CMake"
depends=
makedepends="ncurses-dev curl-dev expat-dev zlib-dev bzip2-dev libarchive-dev"
subpackages="$pkgname-doc"
case $pkgver in
*.*.*.*) _v=v${pkgver%.*.*};;
*.*.*) _v=v${pkgver%.*};;
esac
source="http://www.cmake.org/files/$_v/cmake-${pkgver}.tar.gz
"
_builddir="$srcdir/$pkgname-$pkgver"
parallel_opt() {
local i n
for i in $MAKEOPTS; do
case "$i" in
-j*) n=${i#-j};;
esac;
done
[ -n "$n" ] && echo "--parallel $n"
}
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./bootstrap --prefix=/usr \
--mandir=/share/man \
--datadir=/share/$pkgname \
--docdir=/share/doc/$pkgname \
--system-libs \
$(parallel_opt)
make || return 1
}
package() {
cd $startdir/src/$pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
md5sums="0ae4f25dbec66697c0c3cec1b9e885ae cmake-3.1.1.tar.gz"
sha256sums="b58694e545d51cde5756a894f53107e3d9e469360e1d92e7f6892b55ebc0bebf cmake-3.1.1.tar.gz"
sha512sums="9e60f6ae209706a801f17810c8e17a839a779d5d9516f02290922c306b941957245cbc7345371846f98fb9a6ffb52611fb6e1647fa400c1700f1197743c3a22c cmake-3.1.1.tar.gz"
|