updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / gist-git / PKGBUILD
blob4948c45af7b49ae79ecd495697961af18e3d6611
1 # Maintainer: Antony Male <antony dot male at gmail dot com>
2 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
4 pkgname=gist-git
5 _pkgname=gist
6 pkgver=20110411
7 pkgrel=1
8 pkgdesc="Potentially the best command line gister"
9 arch=(any)
10 url="http://github.com/defunkt/gist"
11 license=('MIT')
12 depends=('ruby' 'git')
13 optdepends=('xclip: will put pasted gists url into X selection automagically')
14 provides=('gist')
15 conflicts=('gist')
17 # Indirect is the original maintainer, prior to 2011-04-11 rduplain had a more up-to-date version though
18 _gitfork="indirect"
19 _gitroot="git://github.com/${_gitfork}/gist.git"
20 _gitname="gist"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname-$_gitfork ] ; then
27     cd $_gitname-$_gitfork && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot "$_gitname-$_gitfork"
31   fi
33   msg "GIT checkout done or server timeout"
36 package() {
37   cd "$srcdir/$_gitname-$_gitfork"
38   install -Dm755 ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
39   install -Dm644 man/${_pkgname}.1 "${pkgdir}/usr/share/man/man1/${_pkgname}.1"
40   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"