[arch-commits] Commit in bash/repos (7 files)
Giancarlo Razzolini
grazzolini at archlinux.org
Sun Dec 20 18:52:39 UTC 2020
Date: Sunday, December 20, 2020 @ 18:52:39
Author: grazzolini
Revision: 404706
archrelease: copy trunk to testing-x86_64
Added:
bash/repos/testing-x86_64/
bash/repos/testing-x86_64/PKGBUILD
(from rev 404705, bash/trunk/PKGBUILD)
bash/repos/testing-x86_64/dot.bash_logout
(from rev 404705, bash/trunk/dot.bash_logout)
bash/repos/testing-x86_64/dot.bash_profile
(from rev 404705, bash/trunk/dot.bash_profile)
bash/repos/testing-x86_64/dot.bashrc
(from rev 404705, bash/trunk/dot.bashrc)
bash/repos/testing-x86_64/system.bash_logout
(from rev 404705, bash/trunk/system.bash_logout)
bash/repos/testing-x86_64/system.bashrc
(from rev 404705, bash/trunk/system.bashrc)
--------------------+
PKGBUILD | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++
dot.bash_logout | 3 +
dot.bash_profile | 5 ++
dot.bashrc | 9 ++++
system.bash_logout | 3 +
system.bashrc | 22 +++++++++++
6 files changed, 139 insertions(+)
Copied: bash/repos/testing-x86_64/PKGBUILD (from rev 404705, bash/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-12-20 18:52:39 UTC (rev 404706)
@@ -0,0 +1,97 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.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.1
+_patchlevel=004
+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 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=('cc012bc860406dcf42f64431bcd3d2fa7560c02915a601aba9cd597a39329baa'
+ 'SKIP'
+ '3e22bf86ae6708df7a6bceb88c67a00118275f9c0b5268f453dd388af7c43b53'
+ 'e149407c2bee17779caec70a7edd3d0000d172e7e4347429b80cb4d55bcec9c2'
+ '4330edf340394d0dae50afb04ac2a621f106fe67fb634ec81c4bfb98be2a1eb5'
+ '5fdc20c44bc9058f728d11111327f4dbb5598fec4d948dd5265211598667f9f0'
+ '025bccfb374a3edce0ff8154d990689f30976b78f7a932dc9a6fcef81821811e'
+ 'ebb07b3dbadd98598f078125d0ae0d699295978a5cdaef6282fe19adef45b5fa'
+ 'SKIP'
+ '15ea6121a801e48e658ceee712ea9b88d4ded022046a6147550790caf04f5dbe'
+ 'SKIP'
+ '22f2cc262f056b22966281babf4b0a2f84cb7dd2223422e5dcd013c3dcbab6b1'
+ 'SKIP'
+ '9aaeb65664ef0d28c0067e47ba5652b518298b3b92d33327d84b98b28d873c86'
+ 'SKIP')
+
+# vim: ts=2 sw=2 et:
Copied: bash/repos/testing-x86_64/dot.bash_logout (from rev 404705, bash/trunk/dot.bash_logout)
===================================================================
--- testing-x86_64/dot.bash_logout (rev 0)
+++ testing-x86_64/dot.bash_logout 2020-12-20 18:52:39 UTC (rev 404706)
@@ -0,0 +1,3 @@
+#
+# ~/.bash_logout
+#
Copied: bash/repos/testing-x86_64/dot.bash_profile (from rev 404705, bash/trunk/dot.bash_profile)
===================================================================
--- testing-x86_64/dot.bash_profile (rev 0)
+++ testing-x86_64/dot.bash_profile 2020-12-20 18:52:39 UTC (rev 404706)
@@ -0,0 +1,5 @@
+#
+# ~/.bash_profile
+#
+
+[[ -f ~/.bashrc ]] && . ~/.bashrc
Copied: bash/repos/testing-x86_64/dot.bashrc (from rev 404705, bash/trunk/dot.bashrc)
===================================================================
--- testing-x86_64/dot.bashrc (rev 0)
+++ testing-x86_64/dot.bashrc 2020-12-20 18:52:39 UTC (rev 404706)
@@ -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 404705, bash/trunk/system.bash_logout)
===================================================================
--- testing-x86_64/system.bash_logout (rev 0)
+++ testing-x86_64/system.bash_logout 2020-12-20 18:52:39 UTC (rev 404706)
@@ -0,0 +1,3 @@
+#
+# /etc/bash.bash_logout
+#
Copied: bash/repos/testing-x86_64/system.bashrc (from rev 404705, bash/trunk/system.bashrc)
===================================================================
--- testing-x86_64/system.bashrc (rev 0)
+++ testing-x86_64/system.bashrc 2020-12-20 18:52:39 UTC (rev 404706)
@@ -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