Created
November 3, 2010 15:14
-
-
Save quigybo/661201 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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