PKGBUILD 3.9 KB

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