blob: cc31a71e95d57bee3edf046b84c2bd3d7f80f836 (
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
|
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>
pkgname=bash
_basever=5.0
_patchlevel=017
pkgver=${_basever}.${_patchlevel}
pkgrel=1
pkgdesc='The GNU Bourne Again shell'
arch=(x86_64)
license=(GPL)
url='https://www.gnu.org/software/bash/bash.html'
backup=(etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout})
depends=('readline>=7.0' glibc ncurses)
optdepends=('bash-completion: for tab completion')
provides=('sh')
source=(https://ftp.gnu.org/gnu/bash/bash-$_basever.tar.gz{,.sig}
dot.bashrc
dot.bash_profile
dot.bash_logout
system.bashrc
system.bash_logout)
validpgpkeys=('7C0135FB088AAF6C66C650B9BB5869F064EA74AB') # Chet Ramey
if [[ $((10#${_patchlevel})) -gt 0 ]]; then
for (( _p=1; _p<=$((10#${_patchlevel})); _p++ )); do
source=(${source[@]} https://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
}
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\"\'
-DNON_INTERACTIVE_LOGIN_SHELLS)
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"
# system-wide configuration files
install -Dm644 system.bashrc "$pkgdir/etc/bash.bashrc"
install -Dm644 system.bash_logout "$pkgdir/etc/bash.bash_logout"
# user configuration file skeletons
install -dm755 "$pkgdir/etc/skel/"
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=('2b44b47b905be16f45709648f671820b'
'SKIP'
'027d6bd8f5f6a06b75bb7698cb478089'
'2902e0fee7a9168f3a4fd2ccd60ff047'
'42f4400ed2314bd7519c020d0187edc5'
'd8f3f334e72c0e30032eae1a1229aef1'
'472f536d7c9e8250dc4568ec4cfaf294'
'b026862ab596a5883bb4f0d1077a3819'
'SKIP'
'2f4a7787365790ae57f36b311701ea7e'
'SKIP'
'af7f2dd93fd5429fb5e9a642ff74f87d'
'SKIP'
'b60545b273bfa4e00a760f2c648bed9c'
'SKIP'
'875a0bedf48b74e453e3997c84b5d8a4'
'SKIP'
'4a8ee95adb72c3aba03d9e8c9f96ece6'
'SKIP'
'411560d81fde2dc5b17b83c3f3b58c6f'
'SKIP'
'dd7cf7a784d1838822cad8d419315991'
'SKIP'
'c1b3e937cd6dccbb7fd772f32812a0da'
'SKIP'
'19b41e73b03602d0e261c471b53e670c'
'SKIP'
'414339330a3634137081a97f2c8615a8'
'SKIP'
'1870268f62b907221b078ad109e1fa94'
'SKIP'
'40d923af4b952b01983ed4c889ae2653'
'SKIP'
'57857b22053c8167677e5e5ac5c6669b'
'SKIP'
'c4c6ea23d09a74eaa9385438e48fdf02'
'SKIP'
'a682ed6fa2c2e7a7c3ba6bdeada07fb5'
'SKIP'
'd9dcaa1d8e7a24850449a1aac43a12a9'
'SKIP')
|