public
Created

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
# Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
pkgname=gist-git
_pkgname=gist
pkgver=20101029
pkgrel=1
pkgdesc="Potentially the best command line gister"
arch=(any)
url="http://github.com/defunkt/gist"
license=('MIT')
depends=('ruby' 'git')
optdepends=('xclip: will put pasted gists url into X selection automagically')
provides=('gist')
conflicts=('gist')
source=()
md5sums=()
 
_gitroot="git://github.com/defunkt/gist.git"
_gitname="gist"
 
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
 
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
 
msg "GIT checkout done or server timeout"
msg "Starting make..."
 
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
 
#
# BUILD HERE
#
 
install -Dm755 ${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 man/${_pkgname}.1 "${pkgdir}/usr/share/man/man1/${_pkgname}.1"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.