Rename /after to /sysa.

This commit is contained in:
Andrius Štikonas 2022-04-07 00:09:45 +01:00
parent 3e2673e274
commit 7a8567dc78
13 changed files with 92 additions and 79 deletions

View file

@ -7,6 +7,9 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
# shellcheck source=/dev/null
. bootstrap.cfg
# Find a list of links
get_links() {
original="${1:-${PWD}/}"
@ -151,8 +154,7 @@ build() {
# Various shenanigans must be implemented for repoducibility
# as a result of timestamps
echo "${pkg}: checksumming created package."
_grep "${pkg}_${revision}" "${SOURCES}/SHA256SUMS.pkgs" | sha256sum -c
src_checksum
echo "${pkg}: cleaning up."
rm -rf "${SOURCES}/${pkg}/build"
@ -272,6 +274,13 @@ src_pkg() {
fi
}
src_checksum() {
if ! [ "$UPDATE_CHECKSUMS" = True ] ; then
echo "${pkg}: checksumming created package."
_grep "${pkg}_${revision}" "${SOURCES}/SHA256SUMS.pkgs" | sha256sum -c
fi
}
src_apply() {
if command -v xbps-install >/dev/null 2>&1; then
xbps-install -y -R /usr/src/repo "${pkg%%-[0-9]*}"