updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / elmer / PKGBUILD
blobfa58be742e57e7854a9314678f250ca9dbbb12a2
1 # Maintained by: sudokode <sudokode@gmail.com>
3 pkgname=elmer
4 pkgver=20111225
5 pkgrel=1
6 pkgdesc="Robust frontend to wget and/or curl for various pastebin services"
7 arch=('any')
8 url="http://github.com/sudokode/elmer"
9 license=('custom:SPL')
10 makedepends=('git')
11 depends=('perl>=5.10' 'perl-uri')
12 optdepends=('wget: pasting with wget'
13                                 'curl: pasting with curl (required to upload files)'
14                                 'xclip: reading from and printing to X buffer')
15 provides=('elmer')
17 _gitroot="git://github.com/sudokode/elmer.git"
18 _gitname="elmer"
20 build() {
21         cd ${srcdir}
22         
23         if [ -d ${_gitname} ] ; then
24                 cd ${_gitname} && git pull origin
25         else
26                 git clone ${_gitroot}
27         fi
28         
29         rm -rf ${srcdir}/${_gitname}-build
30         git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
31         cd ${srcdir}/${_gitname}-build
34 package() {
35         install -D -m755 ${srcdir}/${_gitname}/${_gitname} ${pkgdir}/usr/bin/${_gitname} || return 1 
36         install -D -m755 ${srcdir}/${_gitname}/LICENSE ${pkgdir}/usr/share/licenses/${_gitname}/LICENSE || return 1