blob: 1246373a9d9cf2accc8957c08c76a03eef869b08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Pierre-Gildas MILLON <pgmillon@gmail.com>
# Maintainer: Olivier Mauras <olivier@mauras.ch>
pkgname=py-pygit2
_pkgname=pygit2
pkgver=0.24.2
pkgrel=0
pkgdesc="Python bindings for libgit2"
url="https://github.com/libgit2/pygit2"
arch="all"
license="GPLv2"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
depends=""
makedepends="python2-dev python3-dev py-setuptools py2-cffi py3-cffi py2-six py3-six
libgit2-dev libssh2-dev libressl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/libgit2/$_pkgname/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
replaces="$pkgname"
depends="py2-cffi py2-six"
_py python2
}
_py3() {
depends="py3-cffi py3-six"
_py python3
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
depends="$depends $python libgit2"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir" || return 1
}
md5sums="8c3b4893f3e3ae2937101e69863146fe py-pygit2-0.24.2.tar.gz"
sha256sums="8a779484728e5036a366bcc9f46746a27700f2587dfef066c59c58bdc49fffc8 py-pygit2-0.24.2.tar.gz"
sha512sums="e6a3a20102128a3f6d8d0082df09d73b72ebf71e68d4a21daffd9a3164d54f084e0170a116b778fb153071b32321d18e0ad7860acf8e6d262adc8614545f0219 py-pygit2-0.24.2.tar.gz"
|