From cdaf686bc62e13d65f27db2b38f393abda062afb Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Sun, 28 Apr 2024 00:11:36 +0530 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20@eshanized=20updated=20the=20reposi?= =?UTF-8?q?tory=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snigdhaos-backgrounds/PKGBUILD | 27 +++++++++++++++++++ .../snigdhaos-backgrounds.install | 7 +++++ 2 files changed, 34 insertions(+) create mode 100644 snigdhaos-backgrounds/PKGBUILD create mode 100644 snigdhaos-backgrounds/snigdhaos-backgrounds.install diff --git a/snigdhaos-backgrounds/PKGBUILD b/snigdhaos-backgrounds/PKGBUILD new file mode 100644 index 00000000..2dc9254f --- /dev/null +++ b/snigdhaos-backgrounds/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Eshan Roy + +pkgname=snigdhaos-backgrounds +pkgver=1 +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}"/*.{png,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" +} diff --git a/snigdhaos-backgrounds/snigdhaos-backgrounds.install b/snigdhaos-backgrounds/snigdhaos-backgrounds.install new file mode 100644 index 00000000..f362d6db --- /dev/null +++ b/snigdhaos-backgrounds/snigdhaos-backgrounds.install @@ -0,0 +1,7 @@ +post_install() { + echo -e "\n** The files have been installed in /usr/share/backgrounds **\n" +} + +post_upgrade() { + post_install +} \ No newline at end of file