summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBrenton Horne2020-02-20 14:59:46 +1000
committerBrenton Horne2020-02-20 14:59:46 +1000
commit785152bfbf016975d96f0c3bc02b842b45a75b83 (patch)
tree14b562dfefc594c2dda81f1e1839ab63f7c0eee2 /PKGBUILD
parent5f8edc3b95295b339dc6e35c6df294b19a5555e4 (diff)
downloadaur-785152bfbf016975d96f0c3bc02b842b45a75b83.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 39d9c624caa..f9ad0ebf125 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,15 +4,20 @@
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
pkgname=goddard-backgrounds
pkgver=13.0.0
-pkgrel=6
-_rhver="${pkgver}-16.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 13 (Goddard) backgrounds."
arch=("i686" "x86_64")
url="https://fedoraproject.org/wiki/Wallpapers#Fedora_13"
license=("CC-BY-SA")
_rhlink="https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages"
source=("${_rhlink}/g/${pkgname}-${_rhver}.src.rpm")
-sha256sums=('1445fd471e9036de0e447de5825aa8489518d9cbd9a8d716557b723c449384e7')
+sha256sums=('SKIP')
+
+pkgver() {
+ echo $_string | cut -d '-' -f 3
+}
prepare() {
tar -xv --lzma -f ./${pkgname}-${pkgver}.tar.lzma