summaryrefslogtreecommitdiffstats
path: root/main/make/APKBUILD
blob: e474de72481ba7247e22a0ad37f4573665686765 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=make
pkgver=3.82
pkgrel=4
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
	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
44469128d5044e14ac48b3b991889ceb  use-malloc.patch"