mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-21 03:55:02 +02:00
⏳ @eshanized updated the repository 🎉
This commit is contained in:
27
snigdhaos-backgrounds/PKGBUILD
Normal file
27
snigdhaos-backgrounds/PKGBUILD
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
|
||||||
|
|
||||||
|
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"
|
||||||
|
}
|
7
snigdhaos-backgrounds/snigdhaos-backgrounds.install
Normal file
7
snigdhaos-backgrounds/snigdhaos-backgrounds.install
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
post_install() {
|
||||||
|
echo -e "\n** The files have been installed in /usr/share/backgrounds **\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
Reference in New Issue
Block a user