aboutsummaryrefslogtreecommitdiffstats
path: root/main/make/APKBUILD
blob: 215ffb5cc2794cf5c3c90839237a7b4daa6db0a0 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=make
pkgver=3.82
pkgrel=6
pkgdesc="GNU make utility to maintain groups of programs"
url="http://www.gnu.org/software/make"
arch="all"
license="GPL3+"
depends=""
subpackages="$pkgname-doc"
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2
	make-3.82-savannah-bugs-30612-30723.patch
	make-3.82-copy-on-expand.patch
	make-3.82-memory-corruption.patch
	make-3.82-jobserver.patch
	make-3.82-expensive_glob.patch
	make-3.82-parallel-remake.patch
	make-3.82-dont-prune-intermediate.patch
	make-3.82-arg-list-length.patch
	use-malloc.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
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"
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-nls
	make || return 1
	make check || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="1a11100f3c63fcf5753818e59d63088f  make-3.82.tar.bz2
74e598a2052f7d98e3495ea9d917ecf4  make-3.82-savannah-bugs-30612-30723.patch
9545e667ab5eafdef5b658941290cc26  make-3.82-copy-on-expand.patch
0436e740edbc81cf27fd598241b8dcf0  make-3.82-memory-corruption.patch
923a06973f4bbc9f27c2ca88a6940d45  make-3.82-jobserver.patch
f2ed48ea701e8ab6e5b870a3d125b71a  make-3.82-expensive_glob.patch
89f8032d2f314eb6338739f024d8ecec  make-3.82-parallel-remake.patch
97c9f064c4006c41f29d67febda858af  make-3.82-dont-prune-intermediate.patch
1d175e00f931b7d866d2fddcf0c0b302  make-3.82-arg-list-length.patch
c5b90dd539b5950ac2cf502f266c66aa  use-malloc.patch"