blob: 3395a09e759440ac55619d495d8ccb8db66687c4 (
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
|
# $Id: PKGBUILD 208718 2014-03-25 12:08:31Z bpiotrowski $
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>
pkgname=bash
_basever=4.3
_patchlevel=000 #prepare for some patches
pkgver=$_basever #.$_patchlevel
pkgrel=3
pkgdesc='The GNU Bourne Again shell'
arch=('i686' 'x86_64')
license=('GPL')
url='http://www.gnu.org/software/bash/bash.html'
groups=('base')
backup=(etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout})
depends=('readline>=6.3' 'glibc')
provides=('sh')
install=bash.install
source=(http://ftp.gnu.org/gnu/bash/bash-$_basever.tar.gz{,.sig}
dot.bashrc
dot.bash_profile
dot.bash_logout
system.bashrc
system.bash_logout
bash-4.3-debug-trap.patch
bash-4.3-test-nameref.patch)
if [[ $_patchlevel -gt 000 ]]; then
for (( p=1; p<=$((10#${_patchlevel})); p++ )); do
source=(${source[@]} http://ftp.gnu.org/gnu/bash/bash-$_basever-patches/bash${_basever//./}-$(printf "%03d" $p){,.sig})
done
fi
prepare() {
cd $pkgname-$_basever
for (( p=1; p<=$((10#${_patchlevel})); p++ )); do
msg "applying patch bash${_basever//./}-$(printf "%03d" $p)"
patch -p0 -i ../bash${_basever//./}-$(printf "%03d" $p)
done
# upstream patches I assume will be made official later...
patch -p0 -i ../bash-4.3-debug-trap.patch
patch -p0 -i ../bash-4.3-test-nameref.patch
}
build() {
cd $pkgname-$_basever
_bashconfig=(-DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/bin\"\'
-DSTANDARD_UTILS_PATH=\'\"/usr/bin\"\'
-DSYS_BASHRC=\'\"/etc/bash.bashrc\"\'
-DSYS_BASH_LOGOUT=\'\"/etc/bash.bash_logout\"\')
export CFLAGS="${CFLAGS} ${_bashconfig[@]}"
./configure --prefix=/usr --with-curses --enable-readline \
--without-bash-malloc --with-installed-readline
make
}
check() {
make -C $pkgname-$_basever check
}
package() {
make -C $pkgname-$_basever DESTDIR="$pkgdir" install
ln -s bash "$pkgdir"/usr/bin/sh
install -dm755 "$pkgdir"/etc/skel/
# system-wide configuration files
install -m644 system.bashrc $pkgdir/etc/bash.bashrc
install -m644 system.bash_logout "$pkgdir"/etc/bash.bash_logout
# user configuration file skeletons
install -m644 dot.bashrc "$pkgdir"/etc/skel/.bashrc
install -m644 dot.bash_profile "$pkgdir"/etc/skel/.bash_profile
install -m644 dot.bash_logout "$pkgdir"/etc/skel/.bash_logout
}
md5sums=('81348932d5da294953e15d4814c74dd1'
'SKIP'
'027d6bd8f5f6a06b75bb7698cb478089'
'2902e0fee7a9168f3a4fd2ccd60ff047'
'42f4400ed2314bd7519c020d0187edc5'
'561949793177116b7be29a07c385ba8b'
'472f536d7c9e8250dc4568ec4cfaf294'
'3d5b91bc498c43d7bf902b679c8168ef'
'0615db31244215fd102ecbcd38b8b2e8')
|