🧹 chore: automate pkgver

This commit is contained in:
eshanized
2025-01-08 04:08:50 +05:30
parent 50a6815671
commit ba8270bbfe

View File

@@ -1,23 +0,0 @@
# Maintainer: Eshan Roy <m.eshanized@gmail.com>
pkgname=snigdhaos-wallpapers
pkgver=r3.1363b76
pkgrel=1
pkgdesc="Snigdha OS Wallpapers 2025"
arch=('any')
url="https://github.com/Snigdha-OS/snigdhaos-wallpapers"
license=('GPLv3')
makedepends=('git')
source=("git+https://github.com/Snigdha-OS/snigdhaos-wallpapers.git")
sha256sums=('SKIP')
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/wallpapers/${pkgname}"
cp "${srcdir}/${pkgname}/src/${pkgname}"/* "${pkgdir}/usr/share/wallpapers/${pkgname}"
}