Permalink
Browse files

Add initial version of bash

  • Loading branch information...
jhuntwork committed May 1, 2012
1 parent b223c47 commit 904974a254c80e658f0ea2593fde41ff4a99b24e
Showing with 139 additions and 0 deletions.
  1. +4 −0 packages/bash/ChangeLog
  2. +97 −0 packages/bash/PKGBUILD
  3. +30 −0 packages/bash/bashrc
  4. +8 −0 packages/bash/profile
View
@@ -0,0 +1,4 @@
2012-04-30 Jeremy Huntwork <jhuntwork@lightcubesolutions.com>
* 6.2-1 :
Initial version
View
@@ -0,0 +1,97 @@
pkgname=bash
pkgver=4.2
pkgrel=1
pkgdesc='A full-featured sh-compatible shell.'
arch=('x86_64')
url='http://www.gnu.org/software/bash'
license=('GPL2')
groups=('base')
depends=(ncurses readline)
makedepends=(musl ncurses readline)
options=() # Defaults in makepkg.conf
changelog=ChangeLog
PURGE_TARGETS=(share/info/* bashbug)
source=(
"http://ftp.gnu.org/gnu/bash/$pkgname-$pkgver.tar.gz"
'bashrc'
'profile'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-001'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-002'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-003'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-004'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-005'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-006'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-007'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-008'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-009'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-010'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-011'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-012'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-013'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-014'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-015'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-016'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-017'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-018'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-019'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-020'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-021'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-022'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-023'
'http://ftp.gnu.org/gnu/bash/bash-4.2-patches/bash42-024'
)
sha256sums=(
'a27a1179ec9c0830c65c6aa5d7dab60f7ce1a2a608618570f96bfa72e95ab3d8'
'dafa7e6945b68f4f3cef4386958eef17d8baac60394829e63e9e8ce1f97839c4'
'06850fe2133aeb59fc0dd6c95fc9549774a5f8ca7ac886cfdfdb8b3adfeafe61'
'8d6ca028576c4af23e660a2fbc2112221a11c8a785c0b37f033967e5cd12b47a'
'febac927e199aceeba2004908d971d4afb49b521796c3f42d1166f9fbbfbcef9'
'5a0a7c15018c87348ea87cb0beea14345faf878dbb0e25c17fa70677194cb4cd'
'4e34b0f830d2583d56e14225a66937abc81f45bbafcd2eb49daf61c9462140c1'
'a81749e73004b81cfdf0fe075bec365dc1fef756ee5e3fd142821e317d1459a0'
'c91148945a2ddafa792682d7c8668c59e7e645eae1334b15b0d5d9ad22634bd1'
'405826acf443dd1084f236a15cb76d7f0ee2dbe5edff45c5fb836db571fb7e95'
'23080d11a60a78941210e2477f6bca066b45db03defa60da86fd765107ba2437'
'e7ed5440b4c19765786e90e4f1ded43195d38b3e4d1c4b39fcc23de9a74ccb20'
'acfc5482c25e6923116fcf4b4f7f6345b80f75ad7299749db4b736ad67aa43dc'
'a491ae359a7ebbd7321aede561728289d71e1fc84777f402766a8afd4d261532'
'354433f1d2da02f1b9652cd20a5b85bbfb5bc2aaf79c42461ebd929d89b9b7b8'
'3412c5c6cbbce6c88592604aec054d8182ce64410038b5ecea69fc3968cf85ea'
'b5a678e609858532735f94faedb5fabce00dfd6577a4e9ec5eec85fe682c8b33'
'2d876a8304bdf3d664e87e0a8d73bc4ccc100a9dd8c0d054e8649472d8748a98'
'2895ccbcf7fc98da73a8fa3ba7440aaf2bfaef6c0af8bdd3a9c39403cf03e2a6'
'73552444498c761d6073dd67ccfe043b36ef24bb418c266d91d9750884daee7f'
'e2a9457172370d454d31b84bbcba758ee6394316dbe755374553b52aadbb494d'
'a8b7cd02207656976016d93cab48e073cb5da002ceb27b7a63fc5ea62007eb56'
'494773f0d0078cb35372d24caa523b00d8fdbbaed71e41dc14c9e47579da3c6f'
'a887a97be226575ecf483be2c76655bd6d1edde1cdfe199c27bd2e6baf32badc'
'9dcdf69df7f8cd2ba88d18c45a0d8f55fbe4f0e273411179db94dd6198b85c6b'
'5dc11394f1a6c887373c081396efd4f4cc04492696722c57a4811c207965f0bf'
'99c826bdd33bee281d0a9191550d62a24d0b256cd41c90afd10abd63a66b99e6'
)
build() {
cd "$srcdir/$pkgname-$pkgver"
for patch in bash42-{001..024} ; do patch -Np0 -i "$srcdir/$patch" ; done
sed -i 's/linux-gnu/linux-musl/g' `find . -name "confi*.sub" -o -name "confi*.guess"`
export LDFLAGS='--static'
./configure \
--prefix=/ \
--disable-nls \
--without-bash-malloc \
--with-installed-readline \
ac_cv_func_mbsnrtowcs=no
make $MAKEFLAGS
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR=${pkgdir} install
install -d ${pkgdir}/etc
install -m 0644 ${srcdir}/profile ${pkgdir}/etc/
install -m 0644 ${srcdir}/bashrc ${pkgdir}/etc/
}
View
@@ -0,0 +1,30 @@
alias ls='ls --color=auto'
alias ll='ls -l'
# Setup a red prompt for root and a green one for users.
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
if [[ $EUID == 0 ]] ; then
PS1="$RED\u$NORMAL@\h \w$RED \\$ $NORMAL"
else
PS1="$GREEN\u$NORMAL@\h \w$GREEN \\$ $NORMAL"
fi
PS2=' '
if [ "`locale charmap 2>/dev/null`" = "UTF-8" ]
then
stty iutf8
fi
shopt -s checkwinsize
# Set the titlebar text for X terminals.
if [ "$TERM" = "xterm" -o \
"$TERM" = "xterm-color" -o \
"$TERM" = "xterm-256color" -o \
"$TERM" = "xterm-xfree86" -o \
"$TERM" = "rxvt" -o \
"$TERM" = "rxvt-unicode" ]; then
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
fi
View
@@ -0,0 +1,8 @@
export PATH=/bin:/sbin
export INPUTRC=/etc/inputrc
export PKG_CONFIG_PATH="/lib/pkgconfig:/share/pkgconfig"
export HISTSIZE=1000
export HISTFILESIZE=2000
export HISTTIMEFORMAT="%F %T :: "
export HISTCONTROL=ignoredups:ignorespace
source /etc/bashrc

0 comments on commit 904974a

Please sign in to comment.