From bd85c3dcebd46293b069b9b313ba90ff71287678 Mon Sep 17 00:00:00 2001 From: xpamych Date: Wed, 26 Apr 2023 23:17:20 +0300 Subject: [PATCH] =?UTF-8?q?hlna=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B8=D1=81=D1=82=D0=BE=D1=87=D0=BD=D0=B8?= =?UTF-8?q?=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hlna-dev-git/lure.sh | 38 ------------------------------------- hlna-dev-git/postinstall.sh | 27 -------------------------- hlna-dev-git/postremove.sh | 26 ------------------------- hlna-git/lure.sh | 2 +- 4 files changed, 1 insertion(+), 92 deletions(-) delete mode 100644 hlna-dev-git/lure.sh delete mode 100644 hlna-dev-git/postinstall.sh delete mode 100644 hlna-dev-git/postremove.sh diff --git a/hlna-dev-git/lure.sh b/hlna-dev-git/lure.sh deleted file mode 100644 index 8d93869..0000000 --- a/hlna-dev-git/lure.sh +++ /dev/null @@ -1,38 +0,0 @@ -name='hlna-dev-git' -version='latest' -release='1' -desc='Этот инструмент позволяет управлять выделенным сервером ARK: Survival Evolved на Linux. Он предоставляет множество функций, чтобы получить полный список, ознакомьтесь с разделом использования. (находится в разарботке и может содержать ошибки)' -homepage='https://gitflic.ru/project/xpamych/hlna' -maintainer="Евгений Храмов " -architectures=('amd64') -license=('GPL-3.0-or-later') -provides=('hlna') -conflicts=('hlna') - -build_deps=('python3' 'python3-pip' 'steamcmd') -build_deps_arch=('python' 'python-pip' 'steamcmd') - -sources=("git+https://gitflic.ru/project/xpamych/hln-a.git") -checksums=('SKIP') - -version() { - cd "$srcdir/hln-a" - git-version -} - -scripts=( - ['postinstall']='postinstall.sh' - ['postremove']='postremove.sh' -) - -prepare() { - cd "$srcdir/hln-a" - pip3 install --upgrade --user click colorama click_completion pyTelegramBotAPI discord - pip3 install --upgrade rcon -} - -package() { - install -Dm755 "${srcdir}/hln-a/hlna.py" "${pkgdir}/usr/bin/hlna.py" - install -Dm755 "${srcdir}/hln-a/hlna_bot.py" "${pkgdir}/usr/bin/hlna-bot.py" - install -Dm644 "${srcdir}/hln-a/LICENSE.md" "${pkgdir}/usr/share/licenses/hlna/license" -} diff --git a/hlna-dev-git/postinstall.sh b/hlna-dev-git/postinstall.sh deleted file mode 100644 index 260db4b..0000000 --- a/hlna-dev-git/postinstall.sh +++ /dev/null @@ -1,27 +0,0 @@ -line1_to_add='alias hlna="hlna.py"' -line2_to_add='alias hlna-bot="hlna-bot.py"' -file_paths=("/home/$SUDO_USER/.zshrc" "/home/$SUDO_USER/.bashrc" "/home/$SUDO_USER/.config/fish/config.fish") - -for file_path in "${file_paths[@]}"; do - if [ -f "$file_path" ]; then - # Check if the lines are already in the file - grep -qF "$line1_to_add" "$file_path" - if [ $? -ne 0 ]; then - echo "$line1_to_add" >>"$file_path" - echo "Alias hlna добавлен в $file_path" - else - echo "Alias hlna уже есть в файле $file_path" - fi - - grep -qF "$line2_to_add" "$file_path" - if [ $? -ne 0 ]; then - echo "$line2_to_add" >>"$file_path" - echo "Alias hlna-bot добавлен в $file_path" - else - echo "Alias hlna-bot уже есть в файле $file_path" - fi - - else - echo "$file_path не существует" - fi -done diff --git a/hlna-dev-git/postremove.sh b/hlna-dev-git/postremove.sh deleted file mode 100644 index f4bfb90..0000000 --- a/hlna-dev-git/postremove.sh +++ /dev/null @@ -1,26 +0,0 @@ -line1_to_remove='alias hlna="hlna.py"' -line2_to_remove='alias hlna-bot="hlna-bot.py"' -file_paths=("/home/$SUDO_USER/.zshrc" "/home/$SUDO_USER/.bashrc" "/home/$SUDO_USER/.config/fish/config.fish") - -for file_path in "${file_paths[@]}"; do - if [ -f "$file_path" ]; then - # Check if the line is in the file - grep -qF "$line1_to_remove" "$file_path" - if [ $? -eq 0 ]; then - sed -i "/$line1_to_remove/d" "$file_path" - echo "Alias hlna удалён из $file_path" - else - echo "Alias hlna нет в $file_path" - fi - - grep -qF "$line2_to_remove" "$file_path" - if [ $? -eq 0 ]; then - sed -i "/$line2_to_remove/d" "$file_path" - echo "Alias hlna-bot удалён из $file_path" - else - echo "Alias hlna-bot нет в $file_path" - fi - else - echo "$file_path не существует" - fi -done diff --git a/hlna-git/lure.sh b/hlna-git/lure.sh index 95802c1..c554e88 100644 --- a/hlna-git/lure.sh +++ b/hlna-git/lure.sh @@ -12,7 +12,7 @@ conflicts=('hlna') build_deps=('python3' 'python3-pip' 'steamcmd') build_deps_arch=('python' 'python-pip' 'steamcmd') -sources=("git+https://gitflic.ru/project/xpamych/hln-a.git") +sources=("git+https://gitflic.ru/project/plemyakh/hln-a.git") checksums=('SKIP') version() {