summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Horne2020-01-27 18:52:25 +1000
committerBrenton Horne2020-01-27 18:52:25 +1000
commit50a3d2b462b0f4816fa34144f376c9271cd7ccae (patch)
treebb871dc1e035fdd740564c899733f23419673fea
parent0c2cf3ec03dd1e2f485c50d93e51e24a43d3c773 (diff)
downloadaur-50a3d2b462b0f4816fa34144f376c9271cd7ccae.tar.gz
Bumping to use scripts to determine URL
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 905b1f68505..48ac69af1b5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = f23-backgrounds
pkgdesc = Fedora 23 backgrounds.
pkgver = 23.1.0
- pkgrel = 6
+ pkgrel = 8
url = https://fedoraproject.org/wiki/F23_Artwork
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 5242f2d8766..1dec81ab9e3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,9 @@
# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=f23-backgrounds
pkgver=23.1.0
-pkgrel=6
-_rhver="${pkgver}-8.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 23 backgrounds."
arch=("i686" "x86_64")
url="https://fedoraproject.org/wiki/F23_Artwork"
@@ -12,6 +13,10 @@ _rhlink="https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide
source=("${_rhlink}/f/${pkgname}-${_rhver}.src.rpm")
sha256sums=('4163ec7392999d53d3d3d4f3ed58026b6aa34b115e67b171a6e63e5c88768397')
+pkgver() {
+ echo $_string | cut -d '-' -f 3
+}
+
prepare() {
tar -xvJf ./${pkgname}-${pkgver}.tar.xz
rm -r ./${pkgname}-${pkgver}.tar.xz