[arch-commits] Commit in bash/repos (7 files)

Levente Polyak anthraxx at archlinux.org
Fri Nov 20 20:30:40 UTC 2020


    Date: Friday, November 20, 2020 @ 20:30:40
  Author: anthraxx
Revision: 401586

archrelease: copy trunk to testing-x86_64

Added:
  bash/repos/testing-x86_64/
  bash/repos/testing-x86_64/PKGBUILD
    (from rev 401585, bash/trunk/PKGBUILD)
  bash/repos/testing-x86_64/dot.bash_logout
    (from rev 401585, bash/trunk/dot.bash_logout)
  bash/repos/testing-x86_64/dot.bash_profile
    (from rev 401585, bash/trunk/dot.bash_profile)
  bash/repos/testing-x86_64/dot.bashrc
    (from rev 401585, bash/trunk/dot.bashrc)
  bash/repos/testing-x86_64/system.bash_logout
    (from rev 401585, bash/trunk/system.bash_logout)
  bash/repos/testing-x86_64/system.bashrc
    (from rev 401585, bash/trunk/system.bashrc)

--------------------+
 PKGBUILD           |  124 +++++++++++++++++++++++++++++++++++++++++++++++++++
 dot.bash_logout    |    3 +
 dot.bash_profile   |    5 ++
 dot.bashrc         |    9 +++
 system.bash_logout |    3 +
 system.bashrc      |   22 +++++++++
 6 files changed, 166 insertions(+)

Copied: bash/repos/testing-x86_64/PKGBUILD (from rev 401585, bash/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-11-20 20:30:40 UTC (rev 401586)
@@ -0,0 +1,124 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Aaron Griffin <aaron at archlinux.org>
+
+pkgname=bash
+_basever=5.0
+_patchlevel=018
+pkgver=${_basever}.${_patchlevel}
+pkgrel=2
+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 libreadline.so 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
+    echo "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"
+}
+
+sha256sums=('b4a80f2ac66170b2913efbfb9f2594f1f76c7b1afd11f799e22035d63077fb4d'
+            'SKIP'
+            '3e22bf86ae6708df7a6bceb88c67a00118275f9c0b5268f453dd388af7c43b53'
+            'e149407c2bee17779caec70a7edd3d0000d172e7e4347429b80cb4d55bcec9c2'
+            '4330edf340394d0dae50afb04ac2a621f106fe67fb634ec81c4bfb98be2a1eb5'
+            '5fdc20c44bc9058f728d11111327f4dbb5598fec4d948dd5265211598667f9f0'
+            '025bccfb374a3edce0ff8154d990689f30976b78f7a932dc9a6fcef81821811e'
+            'f2fe9e1f0faddf14ab9bfa88d450a75e5d028fedafad23b88716bd657c737289'
+            'SKIP'
+            '87e87d3542e598799adb3e7e01c8165bc743e136a400ed0de015845f7ff68707'
+            'SKIP'
+            '4eebcdc37b13793a232c5f2f498a5fcbf7da0ecb3da2059391c096db620ec85b'
+            'SKIP'
+            '14447ad832add8ecfafdce5384badd933697b559c4688d6b9e3d36ff36c62f08'
+            'SKIP'
+            '5bf54dd9bd2c211d2bfb34a49e2c741f2ed5e338767e9ce9f4d41254bf9f8276'
+            'SKIP'
+            'd68529a6ff201b6ff5915318ab12fc16b8a0ebb77fda3308303fcc1e13398420'
+            'SKIP'
+            '17b41e7ee3673d8887dd25992417a398677533ab8827938aa41fad70df19af9b'
+            'SKIP'
+            'eec64588622a82a5029b2776e218a75a3640bef4953f09d6ee1f4199670ad7e3'
+            'SKIP'
+            'ed3ca21767303fc3de93934aa524c2e920787c506b601cc40a4897d4b094d903'
+            'SKIP'
+            'd6fbc325f0b5dc54ddbe8ee43020bced8bd589ddffea59d128db14b2e52a8a11'
+            'SKIP'
+            '2c4de332b91eaf797abbbd6c79709690b5cbd48b12e8dfe748096dbd7bf474ea'
+            'SKIP'
+            '2943ee19688018296f2a04dbfe30b7138b889700efa8ff1c0524af271e0ee233'
+            'SKIP'
+            'f5d7178d8da30799e01b83a0802018d913d6aa972dd2ddad3b927f3f3eb7099a'
+            'SKIP'
+            '5d6eee6514ee6e22a87bba8d22be0a8621a0ae119246f1c5a9a35db1f72af589'
+            'SKIP'
+            'a517df2dda93b26d5cbf00effefea93e3a4ccd6652f152f4109170544ebfa05e'
+            'SKIP'
+            'ffd1d7a54a99fa7f5b1825e4f7e95d8c8876bc2ca151f150e751d429c650b06d'
+            'SKIP'
+            '4cf3b9fafb8a66d411dd5fc9120032533a4012df1dc6ee024c7833373e2ddc31'
+            'SKIP'
+            '7c314e375a105a6642e8ed44f3808b9def89d15f7492fe2029a21ba9c0de81d3'
+            'SKIP')
+
+# vim: ts=2 sw=2 et:

Copied: bash/repos/testing-x86_64/dot.bash_logout (from rev 401585, bash/trunk/dot.bash_logout)
===================================================================
--- testing-x86_64/dot.bash_logout	                        (rev 0)
+++ testing-x86_64/dot.bash_logout	2020-11-20 20:30:40 UTC (rev 401586)
@@ -0,0 +1,3 @@
+#
+# ~/.bash_logout
+#

Copied: bash/repos/testing-x86_64/dot.bash_profile (from rev 401585, bash/trunk/dot.bash_profile)
===================================================================
--- testing-x86_64/dot.bash_profile	                        (rev 0)
+++ testing-x86_64/dot.bash_profile	2020-11-20 20:30:40 UTC (rev 401586)
@@ -0,0 +1,5 @@
+#
+# ~/.bash_profile
+#
+
+[[ -f ~/.bashrc ]] && . ~/.bashrc

Copied: bash/repos/testing-x86_64/dot.bashrc (from rev 401585, bash/trunk/dot.bashrc)
===================================================================
--- testing-x86_64/dot.bashrc	                        (rev 0)
+++ testing-x86_64/dot.bashrc	2020-11-20 20:30:40 UTC (rev 401586)
@@ -0,0 +1,9 @@
+#
+# ~/.bashrc
+#
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '

Copied: bash/repos/testing-x86_64/system.bash_logout (from rev 401585, bash/trunk/system.bash_logout)
===================================================================
--- testing-x86_64/system.bash_logout	                        (rev 0)
+++ testing-x86_64/system.bash_logout	2020-11-20 20:30:40 UTC (rev 401586)
@@ -0,0 +1,3 @@
+#
+# /etc/bash.bash_logout
+#

Copied: bash/repos/testing-x86_64/system.bashrc (from rev 401585, bash/trunk/system.bashrc)
===================================================================
--- testing-x86_64/system.bashrc	                        (rev 0)
+++ testing-x86_64/system.bashrc	2020-11-20 20:30:40 UTC (rev 401586)
@@ -0,0 +1,22 @@
+#
+# /etc/bash.bashrc
+#
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+[[ $DISPLAY ]] && shopt -s checkwinsize
+
+PS1='[\u@\h \W]\$ '
+
+case ${TERM} in
+  xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
+    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
+
+    ;;
+  screen*)
+    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
+    ;;
+esac
+
+[ -r /usr/share/bash-completion/bash_completion   ] && . /usr/share/bash-completion/bash_completion



More information about the arch-commits mailing list