summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Gwosdz2021-03-25 10:23:57 +0100
committerJosh Gwosdz2021-03-25 10:23:57 +0100
commita542f4698d289f1215fdada5c04f3eaf96901f86 (patch)
treec3a5784fc08315c0ad2647c3aa151071687194a5
parentcc51486826f3e591195239e7c53dad8f2df14870 (diff)
downloadaur-a542f4698d289f1215fdada5c04f3eaf96901f86.tar.gz
make donwloaded source filename unique
due to https://wiki.archlinux.org/index.php/PKGBUILD#source:~:text=Warning%3A%20The%20downloaded%20source%20filename%20must,with%20the%20syntax%20source%3D('unique_package_name%3A%3Afile_uri')%3B%20e.g.%20source%3D(%22%24pkgname%2D%24pkgver.tar.gz%3A%3Ahttps%3A%2F%2Fgithub.com%2Fcoder%2Fprogram%2Farchive%2Fv%24pkgver.tar.gz%22).
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD2
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 69907adb6d0..5de36738dc1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
pkg/
src/
*.tar.gz
-*.tar.zst \ No newline at end of file
+*.tar.gz.part
+*.tar.zst
diff --git a/PKGBUILD b/PKGBUILD
index 9d8bcacf0c3..b0785493404 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ url="https://github.com/openshift/oc"
license=("Apache")
depends=()
-source=("https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${pkgver}/openshift-client-linux.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${pkgver}/openshift-client-linux.tar.gz")
sha256sums=('e52795752079527824f7deae88996045ac67e7078eb4331a0793deae7d6500b7')