summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBrenton Horne2020-02-20 14:54:47 +1000
committerBrenton Horne2020-02-20 14:54:47 +1000
commitd196d542462041979de6a019167a830ade7eb16d (patch)
tree3fcbc834f7695065b3b468d23bfb97b32b5b0bfa /PKGBUILD
parent0d0f4cb353da26c27ad6f6f78ce4e15d01c690f8 (diff)
downloadaur-spherical-cow-backgrounds.tar.gz
Adding autoupdater; bumping URL
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a0f71762d80..178e64ddf70 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,20 @@
# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=spherical-cow-backgrounds
pkgver=18.0.0
-pkgrel=6
-_rhver="${pkgver}-12.fc31"
+_string=$(curl -sL "https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/$(echo $pkgname | head -c 1)" | grep "${pkgname}" | cut -d '"' -f 6)
+_rhver=$(echo ${_string} | sed "s/${pkgname}-//g" | sed 's/.src.rpm//g')
+pkgrel=$(echo ${_rhver} | cut -d '-' -f 2| sed 's/.fc[0-9]*//g')
pkgdesc="Fedora 18 (Spherical Cow) backgrounds."
arch=("i686" "x86_64")
url="https://fedoraproject.org/wiki/Wallpapers#Fedora_18"
license=("CC-BY-SA")
_rhlink="https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages"
source=("${_rhlink}/s/${pkgname}-${_rhver}.src.rpm")
-sha256sums=('ee4f7824142801072b125722f7567e6a9be778dc0152bc06a8992ddf2ccb4667')
+sha256sums=('SKIP')
+
+pkgver() {
+ echo $_string | cut -d '-' -f 4
+}
prepare() {
tar -xvJf ./${pkgname}-${pkgver}.tar.xz