summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorVladimir Panteleev2021-03-23 11:37:30 +0000
committerVladimir Panteleev2021-03-23 11:37:51 +0000
commite02a53a89b90d411ad7bf248fd8002021bf4ea1c (patch)
treed3fe19cac5e6686bb2c4903a87839e72865750fc /PKGBUILD
parenta7ff2b4f3b22e78dd97a57b72d9845855c901d8a (diff)
downloadaur-e02a53a89b90d411ad7bf248fd8002021bf4ea1c.tar.gz
PKGBUILD: Update and clarify comments
The download.php URL is actually stable, but it's still better to use checksums from upstream.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fa1afccf2209..bbf56157b7e7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,14 +16,14 @@ _filename=${_base}src.tar.xz
_sha256sum=239bac1ed064ab2c08679116c25cf5fea49a337dd3835ad0bf661de1663339bc
_rid=2610
-# Latest URL: always points towards the latest version, but when it
-# is updated, breaks building of this package.
+# download.php URL: Identifies the download using the Megazeux version.
#source=("${_filename}::https://www.digitalmzx.com/download.php?latest=src&ver=${pkgver}")
-# Stable URL: points towards a specific version, but the rid must be updated manually.
-# To find it, look at the last page of https://www.digitalmzx.com/search.php?browse=4&desc=recordReleaseDate.
-# Additionally, the sha256sum is part of the URL, so it is
-# used both to identify the download and to validate the file.
+# download/ URL: Identifies the download using a site-specific "rid",
+# and a SHA-256 checksum of the file. We prefer this one as it allows
+# us to use the checksum from upstream (as opposed to what a packager
+# downloaded). The sha256sum is part of the URL, so it is used both
+# to identify the download and to validate the file.
source=("${_filename}::https://www.digitalmzx.com/download/${_rid}/${_sha256sum}/")
sha256sums=("${_sha256sum}")