first
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.pkg.tar.zst
|
||||
*.zip
|
||||
pkg/
|
||||
src/
|
||||
31
PKGBUILD
Normal file
31
PKGBUILD
Normal file
@@ -0,0 +1,31 @@
|
||||
# Maintainer: Erik Dubois <erik.dubois@gmail.com>
|
||||
pkgname=tms-grub-theme-git
|
||||
_pkgname=tms-grub-theme
|
||||
destinationdir1="/usr/share/grub/themes/alci"
|
||||
#destinationdir2="/boot/grub/themes/alci"
|
||||
_licensedir="/usr/share/arcolinux/licenses/"
|
||||
pkgver=25.11
|
||||
pkgrel=01
|
||||
pkgdesc="Grub theme for tms"
|
||||
arch=(any)
|
||||
url="https://github.com/erikdubois/edu-alci-grub-theme"
|
||||
license=('GPL3')
|
||||
optdepends=('grub-customizer')
|
||||
makedepends=('git')
|
||||
depends=()
|
||||
install=readme.install
|
||||
conflicts=('edu-alci-grub-theme-git')
|
||||
provides=("${pkgname}")
|
||||
options=(!strip !emptydirs)
|
||||
source=("tms-grub-theme.zip")
|
||||
md5sums=('SKIP')
|
||||
package() {
|
||||
mkdir -p "${pkgdir}${_licensedir}${_pkgname}"
|
||||
mv "${srcdir}/${_pkgname}/"LICENSE "${pkgdir}${_licensedir}${_pkgname}/LICENSE"
|
||||
mkdir -p "${pkgdir}${destinationdir1}"
|
||||
cp -r "${srcdir}/${_pkgname}/${destinationdir1}/"* "${pkgdir}${destinationdir1}"
|
||||
#mkdir -p "${pkgdir}${destinationdir2}"
|
||||
#cp -r "${srcdir}/${_pkgname}/${destinationdir2}/"* "${pkgdir}${destinationdir2}"
|
||||
#mkdir -p "${pkgdir}${destinationdir3}"
|
||||
#cp -r "${srcdir}/${_pkgname}/${destinationdir3}/"* "${pkgdir}${destinationdir3}"
|
||||
}
|
||||
23
readme.install
Normal file
23
readme.install
Normal file
@@ -0,0 +1,23 @@
|
||||
post_install() {
|
||||
echo -e "\n** The files have been installed in /usr/share/grub/themes/alci **\n"
|
||||
if grep -q GRUB_THEME /etc/default/grub ; then
|
||||
sed -i '/GRUB_THEME/c GRUB_THEME="/usr/share/grub/themes/alci/theme.txt"' /etc/default/grub
|
||||
else
|
||||
echo 'GRUB_THEME="/usr/share/grub/themes/alci/theme.txt"' | sudo tee -a /etc/default/grub
|
||||
fi
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
echo -e "\n** We change the theme back to the default ArcoLinux Vimix theme **\n"
|
||||
if grep -q GRUB_THEME /etc/default/grub ; then
|
||||
sed -i '/GRUB_THEME/c GRUB_THEME="/boot/grub/themes/Vimix/theme.txt"' /etc/default/grub
|
||||
else
|
||||
echo 'GRUB_THEME="/boot/grub/themes/Vimix/theme.txt"' | sudo tee -a /etc/default/grub
|
||||
fi
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
}
|
||||
1
tms-grub-theme
Submodule
1
tms-grub-theme
Submodule
Submodule tms-grub-theme added at 131af1d5d8
68
up+.sh
Executable file
68
up+.sh
Executable file
@@ -0,0 +1,68 @@
|
||||
#!/bin/bash
|
||||
#set -e
|
||||
##################################################################################################################
|
||||
# Author : Erik Dubois
|
||||
# Website : https://www.erikdubois.be
|
||||
# Website : https://www.alci.online
|
||||
# Website : https://www.ariser.eu
|
||||
# Website : https://www.arcolinux.info
|
||||
# Website : https://www.arcolinux.com
|
||||
# Website : https://www.arcolinuxd.com
|
||||
# Website : https://www.arcolinuxb.com
|
||||
# Website : https://www.arcolinuxiso.com
|
||||
# Website : https://www.arcolinuxforum.com
|
||||
##################################################################################################################
|
||||
#
|
||||
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
|
||||
#
|
||||
##################################################################################################################
|
||||
#tput setaf 0 = black
|
||||
#tput setaf 1 = red
|
||||
#tput setaf 2 = green
|
||||
#tput setaf 3 = yellow
|
||||
#tput setaf 4 = dark blue
|
||||
#tput setaf 5 = purple
|
||||
#tput setaf 6 = cyan
|
||||
#tput setaf 7 = gray
|
||||
#tput setaf 8 = light blue
|
||||
##################################################################################################################
|
||||
|
||||
# reset - commit your changes or stash them before you merge
|
||||
# git reset --hard - personal alias - grh
|
||||
|
||||
echo "Deleting the work folder if one exists"
|
||||
[ -d work ] && rm -rf work
|
||||
|
||||
# checking if I have the latest files from github
|
||||
echo "Checking for newer files online first"
|
||||
git pull
|
||||
|
||||
# Below command will backup everything inside the project folder
|
||||
git add --all .
|
||||
|
||||
# Give a comment to the commit if you want
|
||||
echo "####################################"
|
||||
echo "Write your commit comment!"
|
||||
echo "####################################"
|
||||
|
||||
read input
|
||||
|
||||
# Committing to the local repository with a message containing the time details and commit text
|
||||
|
||||
git commit -m "$input"
|
||||
|
||||
# Push the local files to github
|
||||
|
||||
if grep -q main .git/config; then
|
||||
echo "Using main"
|
||||
git push -u origin main
|
||||
fi
|
||||
|
||||
if grep -q master .git/config; then
|
||||
echo "Using master"
|
||||
git push -u origin master
|
||||
fi
|
||||
|
||||
echo "################################################################"
|
||||
echo "################### Git Push Done ######################"
|
||||
echo "################################################################"
|
||||
Reference in New Issue
Block a user