refactor(rmv): clean dir

This commit is contained in:
Eshan Roy (Eshanized)
2024-05-12 17:23:04 +00:00
parent 0e80f5f673
commit 5bcde31f3b
32999 changed files with 0 additions and 3101016 deletions

View File

@@ -1,28 +0,0 @@
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
pkgname=('snigdhaos-grub-theme')
org=Snigdha-OS
branch=master
pkgver=r10.353d955
pkgrel=1
pkgdesc='Grub Theme For Snigdha OS'
arch=('any')
url="https://github.com/$org/$pkgname"
license=('GPL')
makedepends=('git')
source=("grub-theme::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}"/grub-theme || exit
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
depends=('grub')
install=$pkgname.install
provides=('snigdhaos-grub-theme')
cd grub-theme/snigdhaos-live || exit
sed -i -e 's,.*text = "Welcome to Snigdha OS".*,#text = "Welcome to Snigdha OS",' theme.txt #remove welcome message
find . -type f -exec install -D -m644 {} "${pkgdir}"/usr/share/grub/themes/snigdhaos-grub-theme/{} \;
}

View File

@@ -1,29 +0,0 @@
post_install() {
sed -i -e 's,.*GRUB_THEME=.*,GRUB_THEME="/usr/share/grub/themes/snigdhaos-grub-theme/theme.txt",' /etc/default/grub
sed -i -e 's,.*GRUB_GFXMODE=.*,GRUB_GFXMODE=auto,' /etc/default/grub
sed -i -e 's,.*GRUB_DISTRIBUTOR=.*,GRUB_DISTRIBUTOR="Snigdha",' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
cat <<_EOF
==> Installation: Theme is added to your /etc/default/grub: GRUB_THEME="/usr/share/grub/themes/snigdhaos-grub-theme/theme.txt"
==> Default resolution "auto"
_EOF
}
post_upgrade() {
post_install
}
post_remove() {
cat <<_EOF
==> IMPORTANT: Edit /boot/grub/grub.cfg , remove
==> set theme="/boot/grub/themes/snigdhaos-grub-theme/theme.txt"
==> and uncomment an existing one / default!
==> (Maybe without "/boot", depending on PC setup)
_EOF
}