*** empty log message ***

This commit is contained in:
Aurelien Foret 2006-02-16 21:56:19 +00:00
parent fbea96fd72
commit 1fadb8d250
1 changed files with 24 additions and 0 deletions

24
scripts/aurbuild Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
die() {
echo $*
exit 1
}
if [ "$1" == "" ]; then
echo "usage: aurbuild <package_name>"
echo
exit 1
fi
pkgname=$1
[ -d $pkgname ] && die "Directory '$pkgname' already exists"
[ -f $pkgname ] && die "File '$pkgname' already exists"
echo "Downloading $pkgname.tar.gz"
wget -q http://aur.archlinux.org/packages/$pkgname/$pkgname.tar.gz || die "Failed to fetch $1.pkg.tar.gz"
tar zxf $pkgname.tar.gz || die "Extraction failed"
rm -f $pkgname.tar.gz
cd $pkgname || die "Failed to cwd"
makepkg