summaryrefslogtreecommitdiff
path: root/community/python-pygit2/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/python-pygit2/PKGBUILD
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/python-pygit2/PKGBUILD')
-rw-r--r--community/python-pygit2/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/python-pygit2/PKGBUILD b/community/python-pygit2/PKGBUILD
new file mode 100644
index 000000000..8cf19e460
--- /dev/null
+++ b/community/python-pygit2/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 94332 2013-07-20 22:37:34Z thestinger $
+# Maintainer: Daniel Micay <danielmicay@gmail.com>
+
+pkgbase=python-pygit2
+pkgname=(python-pygit2 python2-pygit2)
+pkgver=0.19.0
+pkgrel=1
+pkgdesc='Python bindings for libgit2'
+url="https://github.com/libgit2/pygit2"
+depends=(libgit2)
+makedepends=(python python2)
+arch=(i686 x86_64)
+license=('GPL2')
+source=(https://github.com/libgit2/pygit2/archive/v${pkgver}.tar.gz)
+md5sums=('a197304b3788ad051c39d7f2eeae4745')
+
+package_python-pygit2() {
+ cd "$srcdir/pygit2-$pkgver"
+ depends+=(python)
+ replaces=(python-libgit2)
+ conflicts=(python-libgit2)
+ LANG=en_US.UTF8 python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pygit2() {
+ cd "$srcdir/pygit2-$pkgver"
+ depends+=(python2)
+ replaces=(python2-libgit2)
+ conflicts=(python2-libgit2)
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}