summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Horne2020-01-27 19:02:30 +1000
committerBrenton Horne2020-01-27 19:02:30 +1000
commit5f7dcf595ccda30272caa3a0782e5f87b5fb174c (patch)
treeae47ea97f661ba0884e95d1cbaeb9f8cc725069c
parentf08fe493e6e1cb8cc628dae76b75bc1ddc764717 (diff)
downloadaur-5f7dcf595ccda30272caa3a0782e5f87b5fb174c.tar.gz
Changing to using scripts to determine URL
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d0711fbbf49..0970c9c378a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,8 +6,9 @@ pkgbase = f28-backgrounds
arch = i686
arch = x86_64
license = CC-BY-SA
- source = https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/f/f28-backgrounds-28.1.5-3.fc31.src.rpm
+ source = https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/f/f28-backgrounds-28.1.5-28.1.5-3.fc31.src.rpm
md5sums = fdfefed91f981143e5708e2bde7638eb
+ sha256sums = SKIP
pkgname = f28-backgrounds
diff --git a/PKGBUILD b/PKGBUILD
index e515ef6a56c..280ec7df6e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,19 @@
pkgname=f28-backgrounds
pkgver=28.1.5
-pkgrel=3
-_rhver="3.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 28 backgrounds."
arch=("i686" "x86_64")
url="https://fedoraproject.org/wiki/F28_Artwork"
license=("CC-BY-SA")
source=("https://archives.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/f/${pkgname}-${pkgver}-${_rhver}.src.rpm")
+sha256sums=('SKIP')
+pkgver() {
+ echo $_string | cut -d '-' -f 3
+}
prepare() {
tar -xf ./${pkgname}-${pkgver}.tar.xz