mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-22 12:35:01 +02:00
@eshanized: push via script
This commit is contained in:
27
push.sh
Executable file
27
push.sh
Executable file
@@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Author : Eshan Roy <eshan@snigdhaos.org>
|
||||||
|
# Author URI : https://eshanized.github.io/
|
||||||
|
|
||||||
|
# NOTE: REPO = Your Repository Name On the Host
|
||||||
|
# NOTE: ORG = Your ORGANIZATION NAME or USERNAME
|
||||||
|
# NOTE: HOST = GitHub, Gitlab, Bitbucket etc.
|
||||||
|
|
||||||
|
# Repo Config
|
||||||
|
REPO=snigdhaos-pkgbuilds
|
||||||
|
# Host Config
|
||||||
|
HOST=https://github.com
|
||||||
|
# Destination Config
|
||||||
|
ORG=Snigdha-OS
|
||||||
|
|
||||||
|
# Set the repository URL and branch
|
||||||
|
REPO_URL="${HOST}/${ORG}/${REPO}.git"
|
||||||
|
BRANCH="master" # or "main" depending on your repository's default branch
|
||||||
|
|
||||||
|
# Commit message
|
||||||
|
MESSAGE="@eshanized: push via script"
|
||||||
|
|
||||||
|
# Add all files, commit, and push changes
|
||||||
|
git add .
|
||||||
|
git commit -m "$MESSAGE"
|
||||||
|
git push origin $BRANCH
|
27
snigdhaos-grub-theme/PKGBUILD
Normal file
27
snigdhaos-grub-theme/PKGBUILD
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
|
||||||
|
pkgname=('snigdhaos-grub-theme')
|
||||||
|
org=Snigdha-OS
|
||||||
|
branch=master
|
||||||
|
pkgver=r10.9f615d5
|
||||||
|
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/{} \;
|
||||||
|
}
|
29
snigdhaos-grub-theme/snigdhaos-grub-theme.install
Normal file
29
snigdhaos-grub-theme/snigdhaos-grub-theme.install
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
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
|
||||||
|
}
|
Reference in New Issue
Block a user