Changeset View
Changeset View
Standalone View
Standalone View
contrib/aur/update-aur.sh
Show All 36 Lines | |||||
do | do | ||||
if [ -f "../common/$f" ] | if [ -f "../common/$f" ] | ||||
then | then | ||||
cp "../common/$f" . | cp "../common/$f" . | ||||
fi | fi | ||||
done | done | ||||
# Add the checksums to the PKGBUILD. Enforce SHA256. | # Add the checksums to the PKGBUILD. Enforce SHA256. | ||||
echo "sha256sums=()" >> PKGBUILD | echo "sha256sums=('f00')" >> PKGBUILD | ||||
run_as_nobody "updpkgsums PKGBUILD" | run_as_nobody "updpkgsums PKGBUILD" | ||||
# Generate the .SRCINFO | # Generate the .SRCINFO | ||||
run_as_nobody "makepkg --printsrcinfo > .SRCINFO" | run_as_nobody "makepkg --printsrcinfo > .SRCINFO" | ||||
popd | popd | ||||
# Clone the upstream repository | # Clone the upstream repository | ||||
git clone "https://aur.archlinux.org/${PACKAGE}.git" "${PACKAGE}-upstream" | git clone "https://aur.archlinux.org/${PACKAGE}.git" "${PACKAGE}-upstream" | ||||
# Copy our modified files to the upstream repository | # Copy our modified files to the upstream repository | ||||
cp -R "${PACKAGE}"/* "${PACKAGE}-upstream" | cp -R "${PACKAGE}/." "${PACKAGE}-upstream" | ||||
# Give write permission to the nobody user | # Give write permission to the nobody user | ||||
# This is required as makepkg cannot be run as root | # This is required as makepkg cannot be run as root | ||||
chmod -R o+w "${PACKAGE}-upstream" | chmod -R o+w "${PACKAGE}-upstream" | ||||
pushd "${PACKAGE}-upstream" | pushd "${PACKAGE}-upstream" | ||||
# The package is ready, let's check it works | # The package is ready, let's check it works | ||||
run_as_nobody "makepkg --clean" | run_as_nobody "makepkg --clean" | ||||
Show All 19 Lines |