Skip to content

Instantly share code, notes, and snippets.

@quigybo
Created November 3, 2010 15:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save quigybo/661201 to your computer and use it in GitHub Desktop.
# 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