summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
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