From 80696a8b313054af73722f69be85587bdbbb160c Mon Sep 17 00:00:00 2001 From: eshanized Date: Fri, 3 Jan 2025 17:26:48 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat:=20add=20splash=20screen=20?= =?UTF-8?q?package=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snigdhaos-plasma-splash/PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 snigdhaos-plasma-splash/PKGBUILD diff --git a/snigdhaos-plasma-splash/PKGBUILD b/snigdhaos-plasma-splash/PKGBUILD new file mode 100644 index 00000000..30da1d7d --- /dev/null +++ b/snigdhaos-plasma-splash/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Eshan Roy + +pkgname="snigdhaos-plasma-splash" +_theme="SnigdhaOS" +pkgver=1.0 # Initial value, updated dynamically +pkgrel=1 +pkgdesc="A Moe themed arch splash screen for Snigdha OS KDE Plasma." +arch=("any") +url="https://github.com/Snigdha-OS/$pkgname" +license=("MIT") +depends=("plasma-desktop") +source=("$pkgname::git+https://github.com/Snigdha-OS/${pkgname}.git#tag=v${pkgver}") +sha256sums=('SKIP') + +pkgver() { + # Fetch the latest tag from GitHub + cd "$srcdir/$pkgname" + git describe --tags $(git rev-list --tags --max-count=1) | tr -d 'v' +} + +package() { + cd "$srcdir/$pkgname" + mkdir -p "${pkgdir}/usr/share/plasma/look-and-feel/" + cp -dr --no-preserve=ownership "$_theme" "${pkgdir}/usr/share/plasma/look-and-feel/" +}