summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Horne2020-01-27 18:56:34 +1000
committerBrenton Horne2020-01-27 18:56:34 +1000
commit36bdf296a1c0d8bf82d12055fb5aaa9e96255b7b (patch)
treed736256055b1adbf0a6c4691132c578cf7ba11b7
parent363298e8b32703b4ba4ff45689179608aa393fc1 (diff)
downloadaur-36bdf296a1c0d8bf82d12055fb5aaa9e96255b7b.tar.gz
Changing to using scripts to determine URL
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
2 files changed, 10 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 50ace1e0b4e..43a2af4b41f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,13 @@
pkgbase = f24-backgrounds
pkgdesc = Fedora 24 backgrounds.
pkgver = 24.1.2
- pkgrel = 8
+ pkgrel = 7
url = https://fedoraproject.org/wiki/F24_Artwork
arch = i686
arch = x86_64
license = CC-BY-SA
source = https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/f/f24-backgrounds-24.1.2-7.fc31.src.rpm
- sha256sums = 55725eb84d48c642658846de779307a5e36dca691b952dbce37d3b4eb9e9ef5c
+ sha256sums = SKIP
pkgname = f24-backgrounds
diff --git a/PKGBUILD b/PKGBUILD
index a1f46c30fea..06e38ef4d84 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,20 @@
# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=f24-backgrounds
pkgver=24.1.2
-pkgrel=8
-_rhver="${pkgver}-7.fc31"
+_string=$(curl -sL "https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/f" | 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 24 backgrounds."
arch=("i686" "x86_64")
url="https://fedoraproject.org/wiki/F24_Artwork"
license=("CC-BY-SA")
_rhlink="https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages"
source=("${_rhlink}/f/${pkgname}-${_rhver}.src.rpm")
-sha256sums=('55725eb84d48c642658846de779307a5e36dca691b952dbce37d3b4eb9e9ef5c')
+sha256sums=('SKIP')
+
+pkgver() {
+ echo $_string | cut -d '-' -f 3
+}
prepare() {
tar -xvJf ./${pkgname}-${pkgver}.tar.xz