summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/librefetch/librefetch21
-rw-r--r--src/librefetch/librefetch.8.ronn3
2 files changed, 13 insertions, 11 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 5a08bb1..08473e0 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -346,17 +346,18 @@ if [[ ${#pkgname[@]} -gt 1 ]]; then
fi
# copy source variables
-source=("${mksource[@]}")
+source=("${mksource[@]}") ; unset "source_${CARCH}"
noextract=("${mknoextract[@]}")
-md5sums=("${mkmd5sums[@]}")
-sha1sums=("${mksha1sums[@]}")
-sha256sums=("${mksha256sums[@]}")
-sha384sums=("${mksha384sums[@]}")
-sha512sums=("${mksha512sums[@]}")
-
-depends=()
-checkdepends=()
-makedepends=("${mkdepends[@]}")
+
+declare algo
+for algo in "${known_hash_algos[@]}"; do
+ eval "${algo}sums=(\"\${mk${algo}sums[@]}\")"
+ unset "${algo}sums_${CARCH}"
+done
+
+depends=() ; unset "depends_${CARCH}"
+checkdepends=() ; unset "checkdepends_${CARCH}"
+makedepends=("${mkdepends[@]}") ; unset "makedepends_${CARCH}"
####
options=(!strip docs libtool staticlibs emptydirs !zipman purge !upx)
diff --git a/src/librefetch/librefetch.8.ronn b/src/librefetch/librefetch.8.ronn
index c43a575..da5ea60 100644
--- a/src/librefetch/librefetch.8.ronn
+++ b/src/librefetch/librefetch.8.ronn
@@ -132,10 +132,11 @@ Following is a table of the translations.
Variables
source = mksource
noextract = mknoextract
- *sums = mk*sums (md5, sha1, sha256, sha384, sha512)
+ *sums = mk*sums (md5, sha1, sha224, sha256, sha384, sha512)
depends = <empty>
checkdepends = <empty>
makedepends = mkdepends
+ *_$CARCH = <unset>
Functions
prepare() { :; }
build() { mksource; }