diff options
author | Pierre-Gildas MILLON <pg.millon@gmail.com> | 2015-09-28 21:58:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-30 14:24:09 +0200 |
commit | 8e2cae01d20b451c135275c908ef51abd9bd4653 (patch) | |
tree | f3fb5f47c2d73223a8cc695c96262450ca82b117 /testing/py-pygit2/APKBUILD | |
parent | 71c0bedfe7a290920b68196ea43bd3adfa3df3a4 (diff) | |
download | aports-8e2cae01d20b451c135275c908ef51abd9bd4653.tar.bz2 aports-8e2cae01d20b451c135275c908ef51abd9bd4653.tar.xz |
testing/py-pygit2: new aport
https://github.com/libgit2/pygit2
Python bindings for libgit2
Diffstat (limited to 'testing/py-pygit2/APKBUILD')
-rw-r--r-- | testing/py-pygit2/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/py-pygit2/APKBUILD b/testing/py-pygit2/APKBUILD new file mode 100644 index 0000000000..a85332f8f6 --- /dev/null +++ b/testing/py-pygit2/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Pierre-Gildas MILLON <pgmillon@gmail.com> +# Maintainer: +pkgname=py-pygit2 +pkgver=0.23.1 +pkgrel=0 +pkgdesc="Python bindings for libgit2" +url=https://github.com/libgit2/pygit2 +arch=all +license=GPLv2 +depends=libgit2 +makedepends="py-setuptools py-cffi python-dev" +source=saveas-https://github.com/libgit2/pygit2/archive/v${pkgver}.tar.gz/pygit2-${pkgver}.tar.gz + +_builddir=$srcdir/pygit2-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build +} + +package() { + cd "$_builddir" + python setup.py install --root "$pkgdir" +} + +md5sums="ad1e53c55d7297ab0d84f9cbb9fc592b pygit2-0.23.1.tar.gz" +sha256sums="7ce72913a183696f90563b5710fdcb78af2559959019349de794fd1d0f8dce19 pygit2-0.23.1.tar.gz" +sha512sums="12a36cadb5292116e7a663eda62e2ccd13af8b33d0e86c8eadfbcbe838629a369fcfddcefc7a2cca6b0d6c54df60010ae891ff77e0f3ccfd48de02776ed77cfb pygit2-0.23.1.tar.gz" |