blob: 197fdf3615083b3a55e819e41380737eb54ee10f (
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
52
|
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=py-hglib
_pkgname=python-hglib
pkgver=2.5
pkgrel=0
pkgdesc="A fast and convenient interface to Mercurial's command server"
url="https://pypi.python.org/pypi/python-hglib"
arch="noarch"
license="MIT"
makedepends="mercurial python2-dev py-setuptools python3-dev"
checkdepends="py-nose"
subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
check() {
cd "$builddir"
python2 test.py
python3 test.py
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
replaces="$pkgname"
_py python2
}
_py3() {
_py python3
}
sha512sums="6152094dcace80b6c6b927543d6450ef2eb0bf6ab86de966a025dba12fc0a95910a0aaea7df2491d320c00ee76a4c3f5dfb3cfbdaaaaa6c941a3322c1b0dbab9 python-hglib-2.5.tar.gz"
|