Package Details: nordic-wallpapers 20220812-1

Git Clone URL: https://aur.archlinux.org/nordic-wallpapers.git (read-only, click to copy)
Package Base: nordic-wallpapers
Description: A collection of wallpapers that go well with the rices inspired by the Nord Colorscheme.
Upstream URL: https://github.com/linuxdotexe/nordic-wallpapers
Licenses: MIT
Submitter: zjuyk
Maintainer: zjuyk
Last Packager: zjuyk
Votes: 4
Popularity: 0.000003
First Submitted: 2021-09-23 02:33 (UTC)
Last Updated: 2022-08-15 03:11 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

zjuyk commented on 2021-11-22 06:05 (UTC)

Thank you! But I perfer to use date as version lable. I'll re-upload a git version PKGBUILD to AUR later.

lmartinez-mirror commented on 2021-11-22 05:34 (UTC) (edited on 2021-11-22 05:36 (UTC) by lmartinez-mirror)

Submitting a patch so that this package only updates when upstream pushes any changes.

EDIT: Actually, this package should be re-uploaded as nordic-wallpapers-git since it uses git for updating upon every change.

diff --git a/PKGBUILD b/PKGBUILD
index 6425895..d95ac94 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,25 @@
 # Maintainer: zjuyk <ownbyzjuyk@gmail.com>
+# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
+
 pkgname=nordic-wallpapers
-pkgver=20211121
+pkgver=r42.79947e5
 pkgrel=1
-pkgdesc="A collection of wallpapers that go well with the rices inspired by the Nord Colorscheme."
+epoch=1
+pkgdesc="Wallpaper collection using the Nord color palette"
 arch=('any')
 url="https://github.com/linuxdotexe/nordic-wallpapers"
 license=('MIT')
 makedepends=('git')
-source=("git+$url")
+source=("$pkgname::git+$url")
 md5sums=('SKIP')

 pkgver() {
    cd "$pkgname"
-   echo $(TZ=UTC git log -1 --pretty='%cd' --date=short-local | tr -d '-')
+   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

 package() {
    cd "$pkgname"
    install -Dm644 wallpapers/* -t "$pkgdir/usr/share/backgrounds/$pkgname/"
-   install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+   install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
 }