diff --git a/push.sh b/push.sh new file mode 100755 index 00000000..e9cadd8c --- /dev/null +++ b/push.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Author : Eshan Roy +# 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 \ No newline at end of file diff --git a/snigdhaos-grub-theme/PKGBUILD b/snigdhaos-grub-theme/PKGBUILD new file mode 100644 index 00000000..1a3e7160 --- /dev/null +++ b/snigdhaos-grub-theme/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Eshan Roy +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/{} \; +} \ No newline at end of file diff --git a/snigdhaos-grub-theme/snigdhaos-grub-theme.install b/snigdhaos-grub-theme/snigdhaos-grub-theme.install new file mode 100644 index 00000000..d7d18301 --- /dev/null +++ b/snigdhaos-grub-theme/snigdhaos-grub-theme.install @@ -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 +} \ No newline at end of file