1
1
Fork 0

deleted duplicate

This commit is contained in:
david 2013-04-12 09:16:26 +02:00
parent 4d1c9b349f
commit f172a03991
2 changed files with 4 additions and 43 deletions

View File

@ -1,42 +0,0 @@
#!/bin/bash
# archlinux yaourt installer
baselink="https://aur.archlinux.org/packages"
packages="package-query yaourt"
#uncomment following for passing the packages as option
#if [ -z $1 ]; then
# echo "usage: ./install_yaourt.sh <list of packages>"
# exit 1
#fi
#packages="$*"
tmpfolder="getyaourt"
sudo pacman -Syu
for package in $packages; do
if [ -d /tmp/$tmpfolder ]; then
rm -rf /tmp/$tmpfolder #use sudo on a multiuser system
fi
mkdir /tmp/$tmpfolder
link=$(curl -s "$baselink/$package" | grep "Download tarball" | sed 's/"/\ /g' | awk '{print $3}')
cd /tmp/$tmpfolder
wget "https://aur.archlinux.org$link" && tar xzf *
cd $package; makepkg -s
if [ $? -eq 0 ]; then
sudo pacman -U *.xz
else
echo "error: could not source PKGBUILD"
fi
cd - > /dev/null
rm -rf /tmp/$tmpfolder
done
echo "info: everything done"

View File

@ -1,5 +1,7 @@
#!/bin/bash
# archlinux yaourt installer
baselink="https://aur.archlinux.org/packages"
packages="package-query yaourt"
#uncomment following for passing the packages as option
@ -23,7 +25,7 @@ for package in $packages; do
link=$(curl -s "$baselink/$package" | grep "Download tarball" | sed 's/"/\ /g' | awk '{print $3}')
cd /tmp/$tmpfolder
wget "https://aur.archlinux.org$link" && tar xzf *
wget "https://aur.archlinux.org$link" && tar xzf *
cd $package; makepkg -s
if [ $? -eq 0 ]; then
@ -37,3 +39,4 @@ for package in $packages; do
done
echo "info: everything done"