Hey - guys I know that arch is not gentoo and i know you need to handle many other devices not only bpi (like in this case
).
Arch is so genius with pacman and other build tools that there is no competition for it
and that is why i want to use arch (i have it on my laptop, i had it on my PC, i have it on my BannanaPIs [1 BPI-R1 and 4xBPI]) and i will use it till end of my days
I wrote little script to do rebuild (it is under construction so i think it will change soon
- but right now it works as expected):
$this->bbcode_second_pass_code('', '
#!/bin/sh
REPOS=('core' 'extra' 'community' 'alarm')
NOT_IN_ARM_ABS_ARRAY=()
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for repo in ${REPOS[*]}
do
echo '-------------------------------------'
echo "Trying to find package in $repo repo"
cd $repo
for packages in $(paclist $repo)
do
package_name=${packages%% *}
echo $package_name
arm_pkgbuild=$(find . -maxdepth 1 -name "$package_name" -type d)
if [ -z $arm_pkgbuild ] && [ ! -d ./$package_name ]
then
echo "No ARM PKGBUILD for $package_name - downloading from ABS with yaourt"
#NOT_IN_ARM_ABS_ARRAY+=($package_name)
mkdir $package_name
cd $package_name
yaourt -G $package_name
cd $package_name
makepkg --skippgpcheck --noconfirm -Ais
cd ../..
else
cd $arm_pkgbuild
if [ -d src ]
then
rm -rf src
fi
if [ -d pkg ]
then
rm -rf pkg
fi
makepkg --skippgpcheck --noconfirm -Ais
cd ..
fi
done
cd ..
echo '-------------------------------------'
done
IFS=$SAVEIFS
')