PKGBUILD 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # $Id$
  2. # Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  3. # Contributor: Allan McRae <allan@archlinux.org>
  4. # Contributor: Aaron Griffin <aaron@archlinux.org>
  5. pkgname=bash
  6. _basever=4.4
  7. _patchlevel=019
  8. pkgver=${_basever}.${_patchlevel}
  9. pkgrel=1.lukeshu1
  10. pkgdesc='The GNU Bourne Again shell'
  11. arch=(x86_64)
  12. license=(GPL)
  13. url='http://www.gnu.org/software/bash/bash.html'
  14. groups=(base)
  15. backup=(etc/bash.bash{rc,_logout} etc/skel/.bash{rc,_profile,_logout})
  16. depends=('readline>=7.0' glibc ncurses)
  17. optdepends=('bash-completion: for tab completion')
  18. provides=('sh')
  19. source=(https://ftp.gnu.org/gnu/bash/bash-$_basever.tar.gz{,.sig}
  20. dot.bashrc
  21. dot.bash_profile
  22. dot.bash_logout
  23. system.bashrc
  24. system.bash_logout)
  25. validpgpkeys=('7C0135FB088AAF6C66C650B9BB5869F064EA74AB') # Chet Ramey
  26. if [[ $((10#${_patchlevel})) -gt 0 ]]; then
  27. for (( _p=1; _p<=$((10#${_patchlevel})); _p++ )); do
  28. source=(${source[@]} https://ftp.gnu.org/gnu/bash/bash-$_basever-patches/bash${_basever//.}-$(printf "%03d" $_p){,.sig})
  29. done
  30. fi
  31. source+=(bash-4.4-bgpids.patch::https://lists.gnu.org/archive/html/bug-bash/2017-03/txtkNUcEEQ4Ch.txt)
  32. prepare() {
  33. cd $pkgname-$_basever
  34. for (( _p=1; _p<=$((10#${_patchlevel})); _p++ )); do
  35. msg "applying patch bash${_basever//.}-$(printf "%03d" $_p)"
  36. patch -p0 -i ../bash${_basever//.}-$(printf "%03d" $_p)
  37. done
  38. patch -p0 -i ../bash-4.4-bgpids.patch
  39. }
  40. build() {
  41. cd $pkgname-$_basever
  42. _bashconfig=(-DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/bin\"\'
  43. -DSTANDARD_UTILS_PATH=\'\"/usr/bin\"\'
  44. -DSYS_BASHRC=\'\"/etc/bash.bashrc\"\'
  45. -DSYS_BASH_LOGOUT=\'\"/etc/bash.bash_logout\"\'
  46. -DNON_INTERACTIVE_LOGIN_SHELLS)
  47. export CFLAGS="${CFLAGS} ${_bashconfig[@]}"
  48. ./configure --prefix=/usr --with-curses --enable-readline \
  49. --without-bash-malloc --with-installed-readline
  50. make
  51. }
  52. check() {
  53. make -C $pkgname-$_basever check
  54. }
  55. package() {
  56. make -C $pkgname-$_basever DESTDIR="$pkgdir" install
  57. ln -s bash "$pkgdir/usr/bin/sh"
  58. # system-wide configuration files
  59. install -Dm644 system.bashrc "$pkgdir/etc/bash.bashrc"
  60. install -Dm644 system.bash_logout "$pkgdir/etc/bash.bash_logout"
  61. # user configuration file skeletons
  62. install -dm755 "$pkgdir/etc/skel/"
  63. install -m644 dot.bashrc "$pkgdir/etc/skel/.bashrc"
  64. install -m644 dot.bash_profile "$pkgdir/etc/skel/.bash_profile"
  65. install -m644 dot.bash_logout "$pkgdir/etc/skel/.bash_logout"
  66. }
  67. md5sums=('148888a7c95ac23705559b6f477dfe25'
  68. 'SKIP'
  69. '027d6bd8f5f6a06b75bb7698cb478089'
  70. '2902e0fee7a9168f3a4fd2ccd60ff047'
  71. '42f4400ed2314bd7519c020d0187edc5'
  72. 'd8f3f334e72c0e30032eae1a1229aef1'
  73. '472f536d7c9e8250dc4568ec4cfaf294'
  74. '817d01a6c0af6f79308a8b7b649e53d8'
  75. 'SKIP'
  76. '765e14cff12c7284009772e8e24f2fe0'
  77. 'SKIP'
  78. '49e7da93bf07f510a2eb6bb43ac3e5a2'
  79. 'SKIP'
  80. '4557d674ab5831a5fa98052ab19edaf4'
  81. 'SKIP'
  82. 'cce96dd77cdd1d293beec10848f6cbb5'
  83. 'SKIP'
  84. 'd3379f8d8abce5c6ee338f931ad008d5'
  85. 'SKIP'
  86. 'ec38c76ca439ca7f9c178e9baede84fc'
  87. 'SKIP'
  88. 'e0ba18c1e3b94f905da9b5bf9d38b58b'
  89. 'SKIP'
  90. 'e952d4f44e612048930c559d90eb99bb'
  91. 'SKIP'
  92. '57b5b35955d68f9a09dbef6b86d2c782'
  93. 'SKIP'
  94. 'cc896e1fa696b93ded568e557e2392d5'
  95. 'SKIP'
  96. 'fa47fbfa56fb7e9e5367f19a9df5fc9e'
  97. 'SKIP'
  98. '5e6a20166efe166267972cc78025417b'
  99. 'SKIP'
  100. '00a8877a8787dbd78d97767db1115b0a'
  101. 'SKIP'
  102. '2409586fd19e3104197ead86ce549eca'
  103. 'SKIP'
  104. '4b31183db086daf8be8943d7f7ea7526'
  105. 'SKIP'
  106. 'c15c8844f1eb87bdbcde71417c9bd342'
  107. 'SKIP'
  108. 'b25e3373fc8de00523116dfe151ac4e0'
  109. 'SKIP'
  110. '8f43e1d277b02f3319a34c1cd4a4ff3e'
  111. 'SKIP'
  112. '1457af04f7cd3c79b68a2c7930ca3002')