summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZee Eichel <zee@dracos-linux.org>2019-05-22 09:34:22 +0700
committerZee Eichel <zee@dracos-linux.org>2019-05-22 09:34:22 +0700
commit63834212dd1ffc92c81897b30a629e28e80355e8 (patch)
tree50a5d5a749e8467dd3f942c18a41a4b72ffe6b6d
parent1be9eb686d22612caea9c0533052d097726d957c (diff)
downloaddemit.main-core-git.repo-master.tar.gz
demit.main-core-git.repo-master.tar.bz2
demit.main-core-git.repo-master.zip
adding bash_completion into RCHEADmaster
-rw-r--r--bash_completion/PKGBUILD7
-rw-r--r--bash_completion/bash_completion.sh1
-rw-r--r--core-system/bash/PKGBUILD-BASH54
-rw-r--r--core-system/bash/bash.install.sh4
-rw-r--r--core-system/bash/bashrc.sh21
-rw-r--r--core-system/bash/profile.sh79
-rw-r--r--core-system/bash/shells.sh6
7 files changed, 5 insertions, 167 deletions
diff --git a/bash_completion/PKGBUILD b/bash_completion/PKGBUILD
index 2fb9d2b..1daef72 100644
--- a/bash_completion/PKGBUILD
+++ b/bash_completion/PKGBUILD
@@ -2,14 +2,15 @@
pkgname=bash-completion
pkgver=2.8
-pkgrel=1
+pkgrel=2
pkgdesc="Bash completion"
arch=(x86_64)
+group=('dracOscore')
url="https://github.com/scop/${pkgname}"
license=('GPL')
provides=("${pkgname}")
conflicts=("${pkgname}")
-source=("​https://github.com/scop/bash-completion/releases/download/2.8/${pkgname}-${pkgver}.tar.xz"
+source=("https://github.com/scop/bash-completion/releases/download/2.8/${pkgname}-${pkgver}.tar.xz"
"bash_completion.sh")
sha256sums=("c01f5570f5698a0dda8dc9cfb2a83744daa1ec54758373a6e349bd903375f54d"
"9fb9f62deec0047d011c5b287dbb20c31f66727010473ce83c2edd8bc4168623")
@@ -27,4 +28,4 @@ package() {
mkdir -p "$pkgdir/etc/profile.d"
install --directory --mode=0755 --owner=root --group=root "${pkgdir}/etc/bash_completion.d"
cp "${srcdir}/bash_completion.sh" "${pkgdir}/etc/profile.d/bash_completion.sh"
- }
+}
diff --git a/bash_completion/bash_completion.sh b/bash_completion/bash_completion.sh
index 4ea3521..65a56f9 100644
--- a/bash_completion/bash_completion.sh
+++ b/bash_completion/bash_completion.sh
@@ -32,3 +32,4 @@ else
fi
# End /etc/profile.d/bash_completion.sh
+
diff --git a/core-system/bash/PKGBUILD-BASH b/core-system/bash/PKGBUILD-BASH
deleted file mode 100644
index 922bed5..0000000
--- a/core-system/bash/PKGBUILD-BASH
+++ /dev/null
@@ -1,54 +0,0 @@
-#Maintainer: purnomo hadi <dimension.breaker@dracos-linux.org>
-#Contributor: Zee Eichel <zee@dracos-linux.org>
-
-pkgname=bash
-pkgver=5.0
-pkgrel=1
-pkgdesc="The Bash package contains the Bourne-Again SHell. "
-arch=(x86_64)
-url="www.gnu.org"
-license=('GPLv3+')
-provides=("${pkgname}")
-conflicts=("${pkgname}")
-source=("http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz"
- "bashrc.sh"
- "shells.sh"
- "profile.sh"
- )
-sha256sums=("b4a80f2ac66170b2913efbfb9f2594f1f76c7b1afd11f799e22035d63077fb4d"
- "ca9b751365fd92161f6d5ac34a0ba16282a01012149389b5c1937c9e6071e71f"
- "1db1de0b837e46cac525afad0b39b41e730114294b209a023f2e7100a3efd2f7"
- "59f25ef61cc4a1bd2f7d40e3e7523e447c58e714905a9eb7ce015572b21d7d51")
-
-build() {
- cd "$pkgname-$pkgver"
-
- ./configure --prefix=/usr \
- --docdir=/usr/share/doc/bash-5.0 \
- --without-bash-malloc \
- --with-installed-readline
- make
-}
-
-package() {
- cd "$pkgname-$pkgver"
- mkdir -p $pkgdir/bin
- make DESTDIR="$pkgdir/" install
- mv -vf $pkgdir/usr/bin/bash $pkgdir/bin
- install -d $pkgdir/etc
- install -d $pkgdir/etc/profile.d
- install -Dm 755 $srcdir/bashrc.sh $pkgdir/etc/bashrc
- install -Dm 755 $srcdir/profile.sh $pkgdir/etc/profile
- install -Dm 644 $srcdir/shells.sh $pkgdir/etc/shells
- install=bash.install.sh
-
- if [ -d "$pkgdir/usr/share/man" ]; then
- rm -rf $pkgdir/usr/share/man
-
- fi
- if [ -d "$pkgdir/usr/share/doc" ]; then
- rm -rf $pkgdir/usr/share/doc
-
- fi
-
-}
diff --git a/core-system/bash/bash.install.sh b/core-system/bash/bash.install.sh
deleted file mode 100644
index 0490de9..0000000
--- a/core-system/bash/bash.install.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-post_install() {
-exec /bin/bash --login +h
-}
-
diff --git a/core-system/bash/bashrc.sh b/core-system/bash/bashrc.sh
deleted file mode 100644
index cb9bab7..0000000
--- a/core-system/bash/bashrc.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-# Begin /etc/bashrc
-# Written for dracOs linux team
-
-# System wide aliases and functions
-
-export TERM=rxvt
-
-alias ls='ls --color=auto'
-alias grep='grep --color=auto'
-
-export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share
-
-if [[ $EUID == 0 ]] ; then
- PS1="\[\033[38;5;196m\]\u@\h\[$(tput sgr0)\]:\w #\[$(tput sgr0)\]"
-else
- PS1="\u@\h:\w $\[$(tput sgr0)\]"
-fi
-
-#unset RED NORMAL
-
-# End /etc/bashrc
diff --git a/core-system/bash/profile.sh b/core-system/bash/profile.sh
deleted file mode 100644
index 4a64c5a..0000000
--- a/core-system/bash/profile.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-# System wide environment variables and startup programs.
-
-# System wide aliases and functions should go in /etc/bashrc. Personal
-# environment variables and startup programs should go into
-# ~/.bash_profile. Personal aliases and functions should go into
-# ~/.bashrc.
-
-# Functions to help us manage paths. Second argument is the name of the
-# path variable to be modified (default: PATH)
-pathremove () {
- local IFS=':'
- local NEWPATH
- local DIR
- local PATHVARIABLE=${2:-PATH}
- for DIR in ${!PATHVARIABLE} ; do
- if [ "$DIR" != "$1" ] ; then
- NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
- fi
- done
- export $PATHVARIABLE="$NEWPATH"
-}
-
-pathprepend () {
- pathremove $1 $2
- local PATHVARIABLE=${2:-PATH}
- export $PATHVARIABLE="$1${!PATHVARIABLE:+:${!PATHVARIABLE}}"
-}
-
-pathappend () {
- pathremove $1 $2
- local PATHVARIABLE=${2:-PATH}
- export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1"
-}
-
-export -f pathremove pathprepend pathappend
-
-# Set the initial path
-export PATH=/bin:/usr/bin:/opt/bin
-
-if [ $EUID -eq 0 ] ; then
- pathappend /sbin:/usr/sbin:/opt/sbin
-fi
-
-# Setup some environment variables.
-export HISTSIZE=1000
-export HISTIGNORE="&:[bf]g:exit"
-
-# Set some defaults for graphical systems
-export XDG_DATA_DIRS=/usr/share/
-export XDG_CONFIG_DIRS=/etc/xdg/
-
-# Setup a red prompt for root and a green one for users.
-
-if [[ $EUID == 0 ]] ; then
- PS1="\[\033[38;5;196m\]\u@\h\[$(tput sgr0)\]:\w #\[$(tput sgr0)\]"
-else
- PS1="\u@\h:\w $\[$(tput sgr0)\]"
-fi
-
-
-for script in /etc/profile.d/*.sh ; do
- if [ -r $script ] ; then
- . $script
- fi
-done
-
-unset script RED GREEN NORMAL
-export LANG=en_US
-
-if test -z "${XDG_RUNTIME_DIR}"; then
- export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
- if ! test -d "${XDG_RUNTIME_DIR}"; then
- mkdir "${XDG_RUNTIME_DIR}"
- chmod 0700 "${XDG_RUNTIME_DIR}"
- fi
-fi
-
-
-# End /etc/profile
diff --git a/core-system/bash/shells.sh b/core-system/bash/shells.sh
deleted file mode 100644
index de78133..0000000
--- a/core-system/bash/shells.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-# Begin /etc/shells
-
-/bin/sh
-/bin/bash
-
-# End /etc/shells