summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBrenton Horne2020-01-27 18:52:25 +1000
committerBrenton Horne2020-01-27 18:52:25 +1000
commit50a3d2b462b0f4816fa34144f376c9271cd7ccae (patch)
treebb871dc1e035fdd740564c899733f23419673fea /PKGBUILD
parent0c2cf3ec03dd1e2f485c50d93e51e24a43d3c773 (diff)
downloadaur-50a3d2b462b0f4816fa34144f376c9271cd7ccae.tar.gz
Bumping to use scripts to determine URL
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 7 insertions, 2 deletions
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