git » base-pkgbuilds.git » main » tree

[main] / pkg-repo.sh

#!/bin/bash
set -e
PKG="$(echo *.pkg.tar.xz)"
REPO=/sources/pkg/$CARCH/base
mv -v *.pkg.tar.xz $REPO
cd $REPO
if [ -e /etc/pacman.d/keys/armlfs-untested-key ]; then
	asignify sign -nN -S .sig /etc/pacman.d/keys/armlfs-untested-key $PKG
fi
repo-add -R base.db.tar.gz $PKG
if [ "$CARCH" = "aarch64" ]; then
	setarch aarch64 systemd-nspawn -a -M pkg-builder64 --bind=/sources -D /buildcore64 pacman -Sy
else
	pacman -Sy
fi