From 1fadb8d250b97278aefbb46528d559eeff1eab77 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Thu, 16 Feb 2006 21:56:19 +0000 Subject: *** empty log message *** --- scripts/aurbuild | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/aurbuild (limited to 'scripts/aurbuild') diff --git a/scripts/aurbuild b/scripts/aurbuild new file mode 100755 index 00000000..02346d8d --- /dev/null +++ b/scripts/aurbuild @@ -0,0 +1,24 @@ +#!/bin/bash + +die() { + echo $* + exit 1 +} + +if [ "$1" == "" ]; then + echo "usage: aurbuild " + 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 + -- cgit v1.2.3-24-g4f1b