summaryrefslogtreecommitdiffstats
path: root/main/bash/APKBUILD
blob: e318a53e966c833ccf01344664a1205136b66a8d (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

pkgname=bash
_myver=4.0
_patchbase=40
_patchlevel=035
pkgver=4.0.035
pkgrel=0
pkgdesc="The GNU Bourne Again shell"
license='GPL'
url="http://www.gnu.org/software/bash/bash.html"
makedepends="readline-dev ncurses-dev bison flex"
depends=
source="http://ftp.gnu.org/gnu/bash/bash-${_myver}.tar.gz
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-001
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-002
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-003
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-004
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-005
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-006
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-007
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-008
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-009
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-010
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-011
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-012
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-013
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-014
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-015
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-016
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-017
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-018
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-019
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-020
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-021
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-022
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-023
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-024
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-025
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-026
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-027
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-028
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-029
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-030
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-031
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-032
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-033
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-034
	http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-035
	bash-noinfo.patch
	"

subpackages="$pkgname-doc"

# run 'abuild _gensrc >> APKBUILD' to generate the patch list
_gensrc() {
	for _i in $(seq 1 $_patchlevel); do
		# seq -w unsupported by busybox
		_p=$(printf "%0.3i" $_i)
		echo -e "\thttp://ftp.gnu.org/gnu/bash/bash-${_myver}-patches/bash${_patchbase}-$_p"
	done
}

build() {
	local p
	cd ${startdir}/src/${pkgname}-${_myver}
	for p in ../bash${_patchbase}-??? ../*.patch; do
		msg "applying patch ${p##*/}"
		patch -p0 -i $p || return 1
	done

	./configure --prefix=/usr \
		--with-curses \
		--disable-nls \
		--enable-readline \
		--without-bash-malloc \
		--with-installed-readline \
		--bindir=/bin \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd ${startdir}/src/${pkgname}-${_myver}
	make DESTDIR=${pkgdir} install

	rm -rf "$pkgdir"/usr/share/locale
}
md5sums="a90a1b5a6db4838483f05438e05e8eb9  bash-4.0.tar.gz
bc7f4762443939bd7dccb42370f0d932  bash40-001
c2a4a4786a83ed4ec366c6a8924369a2  bash40-002
22e8a824eddba21a8fce10d7984c2aba  bash40-003
ed7cbced8c7c964323265522369a37a2  bash40-004
8ed86b7d31423d71ecf3148251d63512  bash40-005
5f447338cb98ff156cabf1fd9879d5f3  bash40-006
96e946cb66a4ca186cba1da44f1ee163  bash40-007
d3eb7b6f00d525e032478c33f51d46a8  bash40-008
340601c997ce569532417a7ae92248b8  bash40-009
0bd5ab96d514ffb1afbb8c7984b15146  bash40-010
32cb20f339a20e1e9fb37a5d18f18fca  bash40-011
33fd9e93d30a17988c19554ef26d56e0  bash40-012
a266b42df5e9ed7e8818a8b00d50e00b  bash40-013
86cac78f191a32cd1404f11264eb9b2a  bash40-014
bb41963d030bc61a20e8185367b337c5  bash40-015
f75455048a086528971252fd979b8755  bash40-016
34b2cd57271a452f4a26b39d77ff908f  bash40-017
99318eed8dcc05e10a14ae27043f175d  bash40-018
af3b9aaeadc71a5007bec2b98c751cde  bash40-019
eb7c7ddeb7e8451eb59228dca3329696  bash40-020
585d701b978ceb63967dc020db3a2234  bash40-021
7a70f2608f90f6ac0c2051e5f1c6c414  bash40-022
7a23aa41630dd4fe8d30108a200e2d96  bash40-023
82ba5fc9eb780eb57d8b7628a17b7d74  bash40-024
b26f9007ac4eef5c378f1abcb8959025  bash40-025
83bc844c82d0a30740e8d91a8238bfa9  bash40-026
a41c187f05ecab07389c18acc91214c6  bash40-027
fcc367e6471267d2e397257e703b817d  bash40-028
4d4da1c0be8dfee8e2a6a7703901130f  bash40-029
55cbdc8e5173d7d59bf1113c3ff590dc  bash40-030
389635281133416de9d13295251cabc7  bash40-031
d646cb4aed8e0f0d1d47eea2ed5f3690  bash40-032
d3e77d2a0a051478aca8c30d13ded834  bash40-033
05a54807fd388e71bac8912ad530ac6d  bash40-034
fc3d8fdb83ccc407ab7f6d1b7ac6a221  bash40-035
80fec5f3d60a63756a4999c877e31a8e  bash-noinfo.patch"