blob: 6d1e9eb517199ea2899ed39d4e49dac30d97983f (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Maintainer: brent s. <bts[at]square-r00t[dot]net>
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net
_py=python2
_pkg=whois
_name="py${_pkg}"
_pkgname="python-${_pkg}"
pkgbase="${_pkgname}"
pkgname=(
"${_py}-${_pkg}"
"python-${_pkg}")
pkgver=0.8.0
pkgrel=1
pkgdesc="Whois querying and parsing of domain registration information"
arch=(
x86_64
i686
pentium4
aarch64
armv7h
)
url="https://bitbucket.org/richardpenman/${_name}"
license=( 'CUSTOM' )
depends=(
"${_py}"
"python"
)
makedepends=(
"python"
"python-setuptools"
"${_py}-setuptools"
)
install=
changelog=
noextract=()
validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
_pypi_repo="https://files.pythonhosted.org/packages/source"
source=(
"${_pypi_repo}/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
"LICENSE"
)
sha512sums=(
'17c7d5aae8f4a3b460222137c944bda60d42692a01983e70edf316ea16e7210922cb8baf6cc94d912716582a880df80a4c9d2a83aa88db73a9011b2b3117273c'
'8cf4065e880c751354fffe41f513b95c6bad6bd28033d7a660bd52636cae0c313f9b60f4c53234320699fc0b44d9e4b42bb06f543733b41e0de07a68068099d1'
)
package_python-whois() {
depends=(
'python'
'python-future'
)
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" \
--optimize=1
install -Dm 0644 ${srcdir}/LICENSE \
"${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
package_python2-whois() {
local _site_packages
_site_packages="$(python2 -c 'import site; print site.getsitepackages()[0]')"
depends=(
"${_py}"
"${_py}-futures"
)
cd "${srcdir}/${_pkgname}-${pkgver}"
PYTHONPATH="${_site_packages}" \
"${_py}" setup.py install --root="${pkgdir}" \
--optimize=1
install -Dm 0644 ${srcdir}/LICENSE \
"${pkgdir}/usr/share/licenses/${_py}-${_pkg}/LICENSE"
}
|