mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-12-06 08:03:50 +01:00
🧹 chore: automate pkgver
This commit is contained in:
@@ -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}"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user