Here are a few ideas:
For checking if a dependency is newer, use this script:
aurPkgs=$(pacman -Qm | cut -d ' ' -f 1)
for aurPkg in $aurPkgs; do
aurDte=$(pacman -Qi $aurPkg | grep "Install Date" | cut -d ':' -f 2- | date '+%s')
depPkgs=$(pacman -Qi $aurPkg | grep "Depends On" | cut -d ':' -f 2-)
for depPkg in $depPkgs; do
depDte=$(pacman -Qi $depPkg | grep "Install Date" | cut -d ':' -f 2- | date '+%s')
if [[ $aurDte < $depDte ]]; then
echo "update $aurPkg given $depPkg is more recent"
fi
done
done
I keep all my aur git repos in a directory and execute the following to see if there is anything new. It cd's into any git repo and fetches, printing out any updates:
TEMP_OLDPWD=$OLDPWD
for d in $(dirname $(find -name "\.git")); do
cd $d
echo "fetching " $d
git fetch
cd $OLDPWD
done
OLDPWD=$TEMP_OLDPWD
To make custom changes to pkgbuilds, just create a branch in git (this assumes you are using aur4) and merge each time there is an update. The workflow would look something like this:
git checkout -b my_branch
git fetch
git merge master
# now do normal makepkg build/install step
Eric
________________________________________
From: arch-general