xbps-src: use the xbps static bins.
--HG-- extra : convert_revision : 7b8f360971f28668dae1032fccdc5819bafe5054
This commit is contained in:
parent
2033bee689
commit
22774572da
2 changed files with 4 additions and 3 deletions
|
@ -34,7 +34,7 @@ verify_sha256_cksum()
|
||||||
|
|
||||||
[ -z "$file" -o -z "$cksum" ] && return 1
|
[ -z "$file" -o -z "$cksum" ] && return 1
|
||||||
|
|
||||||
filesum=$(xbps-digest $XBPS_SRCDISTDIR/$file)
|
filesum=$(xbps-digest.static $XBPS_SRCDISTDIR/$file)
|
||||||
if [ "$origsum" != "$filesum" ]; then
|
if [ "$origsum" != "$filesum" ]; then
|
||||||
msg_error "SHA256 checksum doesn't match for $file."
|
msg_error "SHA256 checksum doesn't match for $file."
|
||||||
fi
|
fi
|
||||||
|
@ -47,7 +47,7 @@ fetch_update_cksum()
|
||||||
local tmpl="$XBPS_TEMPLATESDIR/$pkgname/template"
|
local tmpl="$XBPS_TEMPLATESDIR/$pkgname/template"
|
||||||
local upcmd=$(basename $XBPS_SRCDISTDIR/$1)
|
local upcmd=$(basename $XBPS_SRCDISTDIR/$1)
|
||||||
|
|
||||||
sed -i -e "s|checksum.*|checksum=$(xbps-digest ${upcmd})|" $tmpl
|
sed -i -e "s|checksum.*|checksum=$(xbps-digest.static ${upcmd})|" $tmpl
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,8 @@ xbps_write_metadata_pkg_real()
|
||||||
echo "<key>file</key>" >> $TMPFPLIST
|
echo "<key>file</key>" >> $TMPFPLIST
|
||||||
echo "<string>$j</string>" >> $TMPFPLIST
|
echo "<string>$j</string>" >> $TMPFPLIST
|
||||||
echo "<key>sha256</key>" >> $TMPFPLIST
|
echo "<key>sha256</key>" >> $TMPFPLIST
|
||||||
echo "<string>$(xbps-digest $f)</string>" >> $TMPFPLIST
|
echo "<string>$(xbps-digest.static $f)</string>" \
|
||||||
|
>> $TMPFPLIST
|
||||||
echo "</dict>" >> $TMPFPLIST
|
echo "</dict>" >> $TMPFPLIST
|
||||||
done
|
done
|
||||||
echo "</array>" >> $TMPFPLIST
|
echo "</array>" >> $TMPFPLIST
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue