Refactoring repository...
Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run

This commit is contained in:
CELESTIFYX
2025-01-14 19:02:06 +02:00
parent 876fa0988e
commit 08abac9e7d
33171 changed files with 4677 additions and 761 deletions

View File

@@ -0,0 +1,27 @@
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
pkgname=snigdhaos-backgrounds
pkgver=r28.1d04059
pkgrel=1
pkgdesc="Snigdha OS Wallpapers for GNOME"
arch=('any')
url="https://github.com/Snigdha-OS/snigdhaos-backgrounds"
license=('MIT')
makedepends=('git')
source=("git+https://github.com/Snigdha-OS/snigdhaos-backgrounds.git")
sha256sums=('SKIP')
install="${pkgname}.install"
pkgver() {
cd "$srcdir/$pkgname" || exit
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${pkgname}" || exit
install -d "${pkgdir}/usr/share/backgrounds/${pkgname}"
cp "${srcdir}/${pkgname}/src/${pkgname}"/*.jpg "${pkgdir}/usr/share/backgrounds/${pkgname}"
install -d "${pkgdir}/usr/share/gnome-background-properties"
cp "${srcdir}/${pkgname}/src/${pkgname}/${pkgname}.xml" "${pkgdir}/usr/share/gnome-background-properties/snigdhaos-backgrounds.xml"
}

View File

@@ -0,0 +1,22 @@
post_install() {
echo -e "\n** The files have been installed in /usr/share/backgrounds **\n"
echo -e "\n** Please make sure to set your desktop environment to use these backgrounds. **\n"
# Check if the directory exists and list its contents
if [[ -d "/usr/share/backgrounds" ]]; then
echo -e "\nInstalled backgrounds:\n"
ls -1 /usr/share/backgrounds
else
echo -e "\n[WARNING] The directory /usr/share/backgrounds does not exist. Please check your installation.\n"
fi
# Provide guidance for users of specific desktop environments
echo -e "\n** For GNOME users: Go to Settings -> Background and select from the installed options. **\n"
echo -e "** For KDE users: Right-click on the desktop -> Configure Desktop and Wallpaper -> Browse for backgrounds. **\n"
}
post_upgrade() {
echo -e "\n** Upgrading Snigdha OS Backgrounds **\n"
post_install
echo -e "\n** Upgrade complete. Your backgrounds are up-to-date. **\n"
}