You are not logged in.
Pages: 1
I've noticed there aren't many helpers around for building packages from your local ABS so I made one... It's pretty simple, it copies sources from abs and builds them, if there deps it builds them to.
it works pretty well except for a few packages (libxcb and libxml2 i'm lookin at you..)
I've got alot more work to do on it and other related things so I don't consider it ready for a proper package or anything yet. posting it here incase someone else has a use for it.
#!/bin/bash
#Team Janky-Soft presents
#mkabs
THIS=/usr/bin/mkabs
PACKAGE=$1
if [ ! -f ./PKGBUILD -a "$1" == "" ];
then
echo "Give a package name damnit";
exit
fi
if [ "$1" == "" ];
then
PACKAGE=$(cat PKGBUILD | grep pkgname= | sed 's/.*=//g')
fi
INSTALLED=$(pacman -Q $PACKAGE 2>&1 | awk {'print $3'})
if [ "$INSTALLED" != "" ]
then
REPO=$(pacman -Si $PACKAGE 2>&1 | grep Repo | awk {'print $3'})
if [ "$1" != "" ];
then
cp -Rv /var/abs/$REPO/$PACKAGE/ ./
cd $PACKAGE
fi
DEPS=$(cat PKGBUILD | grep "depends" | grep -v "optdepends")
for WORD in $DEPS;
do
DEP=$(echo $WORD | awk -F "'" {'print $2'} | sed 's/>.*//g' | sed 's/<.*//g' | sed 's/pkgconfig//g' )
REPO=$(pacman -Si $DEP 2>&1 | grep Repo | awk {'print $3'})
INSTALLED=$(pacman -Q $DEP 2>&1 | awk {'print $3'})
if [ "$DEP" != "" -a "$INSTALLED" != "" ];
then
cp -Rv /var/abs/$REPO/$DEP/ ./
cd $DEP
$THIS
wait
cd ..
else if [ "$INSTALLED" != "" ];
then
makepkg -i --noconfirm
fi
fi
done
makepkg -i --noconfirm
else
echo "$PACKAGE already installed";
fi
Offline
Thanks for the expac tip, though its PKGBUILD seems broken
Offline
Thanks for the expac tip, though its PKGBUILD seems broken
I've just tested it: https://projects.archlinux.org/svntogit … ages/expac
Builds and installs fine.
What errors did you get?
Offline
Ah, I'm using the 2011.08.19 base iso so there isn't a libalpm yet. I need to refactor it to be able to upgrade packages before pacman can be upgraded though.. Thanks for the tip.
Offline
Huh?! Are you saying you haven't updated in a years time or so?
Also, libalpm was added way before that iso was released!...
Offline
Pages: 1