fix path to dir
This commit is contained in:
parent
8a157ec7a7
commit
7343e89a17
8
PKGBUILD
8
PKGBUILD
@ -2,9 +2,9 @@ pkgname=tarch-misc
|
|||||||
pkgver=1.0
|
pkgver=1.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Home config file for Tarch OS"
|
pkgdesc="Home config file for Tarch OS"
|
||||||
arch=('any')
|
arch=("any")
|
||||||
url="https://gitcast.ru/tarch_os/tarch-misc.git"
|
url="https://gitcast.ru/tarch_os/tarch-bin"
|
||||||
license=('GPL3')
|
license=("GPL3")
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
@ -15,7 +15,7 @@ package() {
|
|||||||
local SKEL_DIR=${pkgdir}/etc/skel
|
local SKEL_DIR=${pkgdir}/etc/skel
|
||||||
mkdir -p ${SKEL_DIR}
|
mkdir -p ${SKEL_DIR}
|
||||||
|
|
||||||
cp -r ${srcdir}/.Xresources.d ${SKEL_DIR}
|
cp -r ${srcdir}/.Xresources.d ${SKEL_DIR}
|
||||||
|
|
||||||
install -Dm 644 ${srcdir}/.dmrc ${SKEL_DIR}/.dmrc
|
install -Dm 644 ${srcdir}/.dmrc ${SKEL_DIR}/.dmrc
|
||||||
install -Dm 644 ${srcdir}/.face ${SKEL_DIR}/.face
|
install -Dm 644 ${srcdir}/.face ${SKEL_DIR}/.face
|
||||||
|
14
makepkg.sh
14
makepkg.sh
@ -1,6 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$HOME/bin/scripts/system/style"
|
RESET_COLOR="\033[0m"
|
||||||
|
BOLD="\033[1m"
|
||||||
|
ITALIC="\033[3m"
|
||||||
|
|
||||||
|
BLACK="\033[30m"
|
||||||
|
RED="\033[31m"
|
||||||
|
GREEN="\033[32m"
|
||||||
|
YELLOW="\033[33m"
|
||||||
|
BLUE="\033[34m"
|
||||||
|
MAGENTA="\033[35m"
|
||||||
|
CYAN="\033[36m"
|
||||||
|
WHITE="\033[37m"
|
||||||
|
PURPLE="\033[35m"
|
||||||
|
|
||||||
BUILDING_DIR="build"
|
BUILDING_DIR="build"
|
||||||
|
|
||||||
|
@ -71,6 +71,9 @@ alias nv="nvim"
|
|||||||
|
|
||||||
alias ls="lst"
|
alias ls="lst"
|
||||||
|
|
||||||
|
# run sonic-annotator
|
||||||
|
alias sonic-anotator="/home/$USER/vamp/sonic-annotator"
|
||||||
|
|
||||||
# # # # # # #
|
# # # # # # #
|
||||||
# SETTINGS #
|
# SETTINGS #
|
||||||
# # # # # #
|
# # # # # #
|
||||||
|
@ -1,13 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$HOME/bin/scripts/system/style"
|
RESET_COLOR="\033[0m"
|
||||||
|
BOLD="\033[1m"
|
||||||
|
ITALIC="\033[3m"
|
||||||
|
|
||||||
|
BLACK="\033[30m"
|
||||||
|
RED="\033[31m"
|
||||||
|
GREEN="\033[32m"
|
||||||
|
YELLOW="\033[33m"
|
||||||
|
BLUE="\033[34m"
|
||||||
|
MAGENTA="\033[35m"
|
||||||
|
CYAN="\033[36m"
|
||||||
|
WHITE="\033[37m"
|
||||||
|
PURPLE="\033[35m"
|
||||||
|
|
||||||
USER=`echo ${SUDO_USER:-$(whoami)}`
|
USER=`echo ${SUDO_USER:-$(whoami)}`
|
||||||
GID=`echo ${SUDO_GID}`
|
GID=`echo ${SUDO_GID}`
|
||||||
GROUB=`cat /etc/group | grep ${GID} | cut -d: -f1 | head -1`
|
GROUB=`cat /etc/group | grep ${GID} | cut -d: -f1 | head -1`
|
||||||
HOME_DIR="home/${USER}"
|
HOME_DIR="/home/${USER}"
|
||||||
BACKUP_DIR="/home/${HOME_DIR}/.tarch-backups"
|
BACKUP_DIR="${HOME_DIR}/.tarch-backups"
|
||||||
CONFIG_DIR_SKEL="/etc/skel"
|
SKEL_DIR="/etc/skel"
|
||||||
PKG_NAME="tarch-misc"
|
PKG_NAME="tarch-misc"
|
||||||
|
|
||||||
BACKUP (){
|
BACKUP (){
|
||||||
@ -18,7 +30,6 @@ BACKUP (){
|
|||||||
mkdir -p ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
mkdir -p ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||||
|
|
||||||
echo -e ${CYAN}" ==> перемещаем текущий конфиг в backup дирректорию." ${RESET_COLOR}
|
echo -e ${CYAN}" ==> перемещаем текущий конфиг в backup дирректорию." ${RESET_COLOR}
|
||||||
mv ${HOME_DIR}/.mplayer ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
|
||||||
mv ${HOME_DIR}/.Xresources.d ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
mv ${HOME_DIR}/.Xresources.d ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||||
mv ${HOME_DIR}/.dmrc ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
mv ${HOME_DIR}/.dmrc ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||||
mv ${HOME_DIR}/.face ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
mv ${HOME_DIR}/.face ${BACKUP_DIR}/${FILES_NAME}-${BACKUP_NAME}-${BACKUP_RANDOM}
|
||||||
@ -38,18 +49,16 @@ INSTALL (){
|
|||||||
|
|
||||||
mkdir -p ${HOME_DIR}
|
mkdir -p ${HOME_DIR}
|
||||||
|
|
||||||
cp -rf ${HOME_DIR_SKEL}/.mplayer ${HOME_DIR}
|
cp -rf ${SKEL_DIR}/.Xresources.d ${HOME_DIR}
|
||||||
cp -rf ${HOME_DIR_SKEL}/.Xresources.d ${HOME_DIR}
|
cp ${SKEL_DIR}/.dmrc ${HOME_DIR}
|
||||||
cp ${HOME_DIR_SKEL}/.dmrc ${HOME_DIR}
|
cp ${SKEL_DIR}/.face ${HOME_DIR}
|
||||||
cp ${HOME_DIR_SKEL}/.face ${HOME_DIR}
|
cp ${SKEL_DIR}/.gtkrc-2.0 ${HOME_DIR}
|
||||||
cp ${HOME_DIR_SKEL}/.gtkrc-2.0 ${HOME_DIR}
|
cp ${SKEL_DIR}/.hushlogin ${HOME_DIR}
|
||||||
cp ${HOME_DIR_SKEL}/.hushlogin ${HOME_DIR}
|
cp ${SKEL_DIR}/.p10k.zsh ${HOME_DIR}
|
||||||
cp ${HOME_DIR_SKEL}/.p10k.zsh ${HOME_DIR}
|
cp ${SKEL_DIR}/.Xresources ${HOME_DIR}
|
||||||
cp ${HOME_DIR_SKEL}/.Xresources ${HOME_DIR}
|
cp ${SKEL_DIR}/.zshrc ${HOME_DIR}
|
||||||
cp ${HOME_DIR_SKEL}/.zshrc ${HOME_DIR}
|
|
||||||
|
|
||||||
echo -e ${CYAN}" ==> предоставление разрешений для пользователя: ${PURPLE}${USER}" ${RESET_COLOR}
|
echo -e ${CYAN}" ==> предоставление разрешений для пользователя: ${PURPLE}${USER}" ${RESET_COLOR}
|
||||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.mplayer
|
|
||||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.Xresources.d
|
chown -R ${USER}:${GROUB} ${HOME_DIR}/.Xresources.d
|
||||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.dmrc
|
chown -R ${USER}:${GROUB} ${HOME_DIR}/.dmrc
|
||||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.face
|
chown -R ${USER}:${GROUB} ${HOME_DIR}/.face
|
||||||
@ -59,7 +68,7 @@ INSTALL (){
|
|||||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.Xresources
|
chown -R ${USER}:${GROUB} ${HOME_DIR}/.Xresources
|
||||||
chown -R ${USER}:${GROUB} ${HOME_DIR}/.zshrc
|
chown -R ${USER}:${GROUB} ${HOME_DIR}/.zshrc
|
||||||
|
|
||||||
if [[ -d "${HOME_DIR}/.mplayer" && -d "${HOME_DIR}/.Xresources.d" && -f "${HOME_DIR}/.dmrc" && -f "${HOME_DIR}/.face" && -f "${HOME_DIR}/.fehbg" && -f "${HOME_DIR}/.gtkrc-2.0" && -f "${HOME_DIR}/.hushlogin" && -f "${HOME_DIR}/.p10k.zsh" && -f "${HOME_DIR}/.Xresources" && -f "${HOME_DIR}/.xsettingsd" && -f "${HOME_DIR}/.zshrc" ]]; then
|
if [[ -d "${HOME_DIR}/.Xresources.d" && -f "${HOME_DIR}/.dmrc" && -f "${HOME_DIR}/.face" && -f "${HOME_DIR}/.fehbg" && -f "${HOME_DIR}/.gtkrc-2.0" && -f "${HOME_DIR}/.hushlogin" && -f "${HOME_DIR}/.p10k.zsh" && -f "${HOME_DIR}/.Xresources" && -f "${HOME_DIR}/.xsettingsd" && -f "${HOME_DIR}/.zshrc" ]]; then
|
||||||
echo -e ${BOLD}${GREEN}"[✔] конфигурационные файлы установлены..." ${RESET_COLOR}
|
echo -e ${BOLD}${GREEN}"[✔] конфигурационные файлы установлены..." ${RESET_COLOR}
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user