updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / paest-cli-git / PKGBUILD
blob7ce51998f188bb0b06312a6f111a9c51c2b20fc5
1 # Maintainer: Spencer Judd <spencercjudd@gmail.com>
3 pkgname=paest-cli-git
4 pkgver=20120120
5 pkgrel=1
6 pkgdesc="A command-line interface for pae.st, the pastebin for hardcore programmers."
7 arch=('any')
8 url="https://github.com/scjudd/paestcli"
9 license=('GPL')
10 depends=('python2')
11 makedepends=('git')
12 provides=('paest-cli')
14 _gitroot="git://github.com/scjudd/paestcli.git"
15 _gitname="paestcli"
17 build() {
18     cd ${srcdir}
19     msg "Connecting to GIT server...."
21     if [ -d ${_gitname} ]; then
22         cd ${_gitname} && git pull origin
23         msg "The local files are updated."
24     else
25         git clone ${_gitroot}
26     fi
28     msg "GIT checkout done or server timeout."
31 package() {
32     install -D -m755 ${srcdir}/${_gitname}/paest ${pkgdir}/usr/bin/paest