updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / curlpaste-git / PKGBUILD
blob87b77cbac5fc4dd0f49331f31d38f60d00aebac2
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 pkgname=curlpaste-git
4 pkgver=20090801
5 pkgrel=1
6 pkgdesc="Utility to post text files to a number of pastebin sites using curl and Lua"
7 arch=('i686' 'x86_64')
8 url="http://github.com/Kiwi/curlpaste/tree/master"
9 license=('MIT')
10 depends=('curl' 'lua')
11 makedepends=('git')
12 provides=('curlpaste')
14 _gitroot="git://github.com/Kiwi/curlpaste.git"
15 _gitname="curlpaste"
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"
29         msg "Starting make..."
31         rm -rf ${srcdir}/${_gitname}-build
32         git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
33         cd ${srcdir}/${_gitname}-build
34   
35         install -D -m755 ${_gitname} ${pkgdir}/usr/bin/${_gitname} || return 1
36         install -D -m644 ${_gitname}.conf ${pkgdir}/etc/${_gitname}.conf || return 1
37