archrelease: copy trunk to testing-x86_64
[arch-packages.git] / bash / repos / core-x86_64 / PKGBUILD
blob166484f163cd320f9cbff72dc657636c7fb59c04
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
3 # Contributor:  BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
4 # Contributor: Allan McRae <allan@archlinux.org>
5 # Contributor: Aaron Griffin <aaron@archlinux.org>
7 pkgname=bash
8 _basever=5.1
9 _patchlevel=016
10 pkgver=${_basever}.${_patchlevel}
11 pkgrel=3
12 pkgdesc='The GNU Bourne Again shell'
13 arch=(x86_64)
14 license=(GPL)
15 url='https://www.gnu.org/software/bash/bash.html'
16 backup=(etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout})
17 depends=(readline libreadline.so glibc ncurses)
18 optdepends=('bash-completion: for tab completion')
19 provides=('sh')
20 install=bash.install
21 source=(https://ftp.gnu.org/gnu/bash/bash-$_basever.tar.gz{,.sig}
22         dot.bashrc
23         dot.bash_profile
24         dot.bash_logout
25         system.bashrc
26         system.bash_logout)
27 validpgpkeys=('7C0135FB088AAF6C66C650B9BB5869F064EA74AB') # Chet Ramey
29 if [[ $((10#${_patchlevel})) -gt 0 ]]; then
30   for (( _p=1; _p<=$((10#${_patchlevel})); _p++ )); do
31     source=(${source[@]} https://ftp.gnu.org/gnu/bash/bash-$_basever-patches/bash${_basever//.}-$(printf "%03d" $_p){,.sig})
32   done
35 prepare() {
36   cd $pkgname-$_basever
38   for (( _p=1; _p<=$((10#${_patchlevel})); _p++ )); do
39     echo "applying patch bash${_basever//.}-$(printf "%03d" $_p)"
40     patch -p0 -i ../bash${_basever//.}-$(printf "%03d" $_p)
41   done
44 build() {
45   cd $pkgname-$_basever
47   _bashconfig=(-DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/bin\"\'
48                -DSTANDARD_UTILS_PATH=\'\"/usr/bin\"\'
49                -DSYS_BASHRC=\'\"/etc/bash.bashrc\"\'
50                -DSYS_BASH_LOGOUT=\'\"/etc/bash.bash_logout\"\'
51                -DNON_INTERACTIVE_LOGIN_SHELLS)
52   export CFLAGS="${CFLAGS} ${_bashconfig[@]}"
54   ./configure \
55     --prefix=/usr \
56     --with-curses \
57     --enable-readline \
58     --without-bash-malloc \
59     --with-installed-readline
60   make
63 check() {
64   make -C $pkgname-$_basever check
67 package() {
68   make -C $pkgname-$_basever DESTDIR="$pkgdir" install
69   ln -s bash "$pkgdir/usr/bin/sh"
70   ln -s bash "$pkgdir/usr/bin/rbash"
72   # system-wide configuration files
73   install -Dm644 system.bashrc "$pkgdir/etc/bash.bashrc"
74   install -Dm644 system.bash_logout "$pkgdir/etc/bash.bash_logout"
76   # user configuration file skeletons
77   install -dm755 "$pkgdir/etc/skel/"
78   install -m644 dot.bashrc "$pkgdir/etc/skel/.bashrc"
79   install -m644 dot.bash_profile "$pkgdir/etc/skel/.bash_profile"
80   install -m644 dot.bash_logout "$pkgdir/etc/skel/.bash_logout"
83 sha256sums=('cc012bc860406dcf42f64431bcd3d2fa7560c02915a601aba9cd597a39329baa'
84             'SKIP'
85             '959bc596166c9758fdd68836581f6b8f1d6fdb947d580bf24dce607998a077b8'
86             'e149407c2bee17779caec70a7edd3d0000d172e7e4347429b80cb4d55bcec9c2'
87             '4330edf340394d0dae50afb04ac2a621f106fe67fb634ec81c4bfb98be2a1eb5'
88             '51ceca7cd615ff4e2f8f3373a46ac7bfd453be70bbaddc074cb17f6db1ac7370'
89             '025bccfb374a3edce0ff8154d990689f30976b78f7a932dc9a6fcef81821811e'
90             'ebb07b3dbadd98598f078125d0ae0d699295978a5cdaef6282fe19adef45b5fa'
91             'SKIP'
92             '15ea6121a801e48e658ceee712ea9b88d4ded022046a6147550790caf04f5dbe'
93             'SKIP'
94             '22f2cc262f056b22966281babf4b0a2f84cb7dd2223422e5dcd013c3dcbab6b1'
95             'SKIP'
96             '9aaeb65664ef0d28c0067e47ba5652b518298b3b92d33327d84b98b28d873c86'
97             'SKIP'
98             'cccbb5e9e6763915d232d29c713007a62b06e65126e3dd2d1128a0dc5ef46da5'
99             'SKIP'
100             '75e17d937de862615c6375def40a7574462210dce88cf741f660e2cc29473d14'
101             'SKIP'
102             'acfcb8c7e9f73457c0fb12324afb613785e0c9cef3315c9bbab4be702f40393a'
103             'SKIP'
104             'f22cf3c51a28f084a25aef28950e8777489072628f972b12643b4534a17ed2d1'
105             'SKIP'
106             'e45cda953ab4b4b4bde6dc34d0d8ca40d1cc502046eb28070c9ebcd47e33c3ee'
107             'SKIP'
108             'a2c8d7b2704eeceff7b1503b7ad9500ea1cb6e9393faebdb3acd2afdd7aeae2a'
109             'SKIP'
110             '58191f164934200746f48459a05bca34d1aec1180b08ca2deeee3bb29622027b'
111             'SKIP'
112             '10f189c8367c4a15c7392e7bf70d0ff6953f78c9b312ed7622303a779273ab98'
113             'SKIP'
114             'c7acb66df435d284304c16ca83a5265f9edd9368612095b01a733d45c77ed5ad'
115             'SKIP'
116             '6a4ee0c81b437b96279a792c1efcec4ba56f009195a318083db6b53b096f83d0'
117             'SKIP'
118             '1b37692ef1f6cc3dcec246773443276066e6b1379868f8c14e01f4dfd4df80f0'
119             'SKIP'
120             '8899144f76a5db1fb41a89ed881c9f19add95728dd71db324f772ef225c5384f'
121             'SKIP')
123 # vim: ts=2 sw=2 et: