Created
January 8, 2009 17:51
-
-
Save mattikus/44816 to your computer and use it in GitHub Desktop.
This file contains 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: Matt Kemp <matt@mattikus.com> | |
pkgname=pygist-git | |
pkgver=20090108 | |
pkgrel=1 | |
pkgdesc="Python command line interface with gist.github.com" | |
url="http://github.com/mattikus/pygist/tree/master" | |
arch=('i686' 'x86_64') | |
license=('MIT') | |
depends=('python') | |
makedepends=('git') | |
conflicts=() | |
replaces=() | |
backup=() | |
md5sums=() | |
_gitroot="git://github.com/mattikus/pygist.git" | |
_gitname="pygist" | |
build() { | |
cd ${srcdir} | |
msg "Connecting to github.com GIT server...." | |
if [ -d ${srcdir}/$_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..." | |
cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build | |
cd ${srcdir}/$_gitname-build | |
chmod +x pygist.py | |
mkdir -p ${pkgdir}/usr/bin/ | |
cp pygist.py ${pkgdir}/usr/bin/pygist | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment