From 5c76c8ab23ba5ca51a4bc85e89c4d7bec6663087 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Thu, 12 Jan 2023 01:00:38 +0100 Subject: . --- aur.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 aur.sh (limited to 'aur.sh') diff --git a/aur.sh b/aur.sh new file mode 100755 index 0000000..edb70ca --- /dev/null +++ b/aur.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +set -e + +PACKAGES="opcut + python-hat-aio + python-hat-doit + python-hat-json + python-hat-util" + +cd $(dirname -- "$0") + +mkdir -p aur + +for PACKAGE in $PACKAGES; do + + echo -n "$PACKAGE... " + + if [ -d aur/$PACKAGE ]; then + git -C aur/$PACKAGE pull -q + else + git -C aur clone -q ssh://aur@aur.archlinux.org/$PACKAGE.git + fi + + for SRC in $(find $PACKAGE -type f -a -not -name .gitignore); do + if ! git check-ignore -q $SRC; then + cp $SRC aur/$SRC + fi + done + + (cd aur/$PACKAGE; makepkg --printsrcinfo > .SRCINFO) + + if git -C aur/$PACKAGE diff --quiet; then + echo "OK" + else + echo "CHANGED" + fi + +done -- cgit v1.2.3-70-g09d2