summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD11
2 files changed, 11 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4a74e645b89..48b2fa30b80 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
pkgbase = goddard-backgrounds
pkgdesc = Fedora 13 (Goddard) backgrounds.
pkgver = 13.0.0
- pkgrel = 6
+ pkgrel = 17
url = https://fedoraproject.org/wiki/Wallpapers#Fedora_13
arch = i686
arch = x86_64
license = CC-BY-SA
- source = https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/g/goddard-backgrounds-13.0.0-16.fc31.src.rpm
- sha256sums = 1445fd471e9036de0e447de5825aa8489518d9cbd9a8d716557b723c449384e7
+ source = https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/g/goddard-backgrounds-13.0.0-17.fc32.src.rpm
+ sha256sums = SKIP
pkgname = goddard-backgrounds
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