[ create a new paste ] login | about

Link: http://codepad.org/kEcKxnvT    [ raw code | fork ]

Plain Text, pasted on Oct 10:
# Contributor: Dag Odenhall <dag.odenhall@gmail.com>
pkgname=amazing-git
pkgver=20101010
pkgrel=1
pkgdesc="An amazing widget manager for an awesome window manager"
arch=('i686' 'x86_64')
url="http://amazing.rubyforge.org/"
license=('APACHE')
depends=('ruby')
makedepends=('git')
optdepends=("mpd: for use with Mpd widget"
            "moc: for use with Moc widget"
            "raggle: for use with Raggle widget"
            "alsa-utils: for use with Alsa widget")
provides=('amazing')
conflicts=('amazing')
source=()
md5sums=()

_gitroot="git://github.com/dag/amazing.git"
_gitname="amazing"
_gitbranch="master" # optionally set to "config"
                    # http://github.com/dag/amazing/wikis/beyond-awesome-2-2

build() {
	cd "$srcdir"
	msg "Connecting to GIT server...."
	
	if [ -d $_gitname ] ; then
		cd $_gitname && git pull origin
		msg "The local files are updated."
	else
		git clone $_gitroot $_gitname
	fi
	
	msg "GIT checkout done or server timeout"
	msg "Starting make..."
	
	rm -rf "$srcdir/$_gitname-build"
	git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
	cd "$srcdir/$_gitname-build"
	
	ruby setup.rb config
	ruby setup.rb install --prefix=$pkgdir
} 



Create a new paste based on this one


Comments: