Skip to content

@quigybo /gist:661201
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# 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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.