1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
6 pkgdesc="Utility to post text files to a number of pastebin sites using curl and Lua"
8 url="http://github.com/Kiwi/curlpaste/tree/master"
10 depends=('curl' 'lua')
12 provides=('curlpaste')
14 _gitroot="git://github.com/Kiwi/curlpaste.git"
19 msg "Connecting to GIT server...."
21 if [ -d ${_gitname} ] ; then
22 cd ${_gitname} && git pull origin
23 msg "The local files are updated."
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
35 install -D -m755 ${_gitname} ${pkgdir}/usr/bin/${_gitname} || return 1
36 install -D -m644 ${_gitname}.conf ${pkgdir}/etc/${_gitname}.conf || return 1