blob: ad5bf0c1320f90c9d2b8ee5717068cdaa5b6445d (
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
75
76
77
78
79
80
81
82
83
84
85
|
# SPDX-License-Identifier: AGPL-3.0
# Maintainer: Truocolo <truocolo@aol.com>
# Maintainer: Pellegrino Prevete (dvorak) <pellegrinoprevete@gmail.com>
# Contributor: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
# shellcheck disable=SC2034
_py="python2"
_pkg="distlib"
pkgbase="${_py}-${_pkg}"
pkgname=(
"${pkgbase}"
)
pkgver=0.3.3
pkgrel=1
pkgdesc="Low-level components of distutils2/packaging"
arch=(
'any'
)
_http="https://bitbucket.org"
_ns="pypa"
url="${_http}/${_ns}/${_pkg}"
license=(
'PSF'
)
makedepends=(
"${_py}"
)
_pypi="https://files.pythonhosted.org/packages/source"
source=(
"${_pypi}/${_pkg:0:1}/${_pkg}/${_pkg}-${pkgver}.zip"
)
sha256sums=(
'd982d0751ff6eaaab5e2ec8e691d949ee80eddf01a62eaa96ddb11531fe16b05'
)
b2sums=(
'269ec9e8f22c991fea6b81c37d9b527348bd5431fe09b02a7972e3272c379842df0254ae0c9e7283bc1b5a2402d9bd9087e2d1fdd979c1ac3a8b99cfb962c308'
)
# shellcheck disable=SC2154
prepare() {
cd \
"${srcdir}"/${_pkg}-${pkgver} || \
exit
rm \
distlib/*.exe
}
# shellcheck disable=SC2154
build() {
cd \
"${srcdir}/${_pkg}-${pkgver}" || \
exit
"${_py}" \
setup.py \
build
}
# shellcheck disable=SC2154
check() {
cd \
"${srcdir}"/${_pkg}-${pkgver} || \
exit
"${_py}" \
setup.py \
test
}
# shellcheck disable=SC2154
package() {
depends=(
"${_py}"
)
cd \
"${srcdir}/${_pkg}-${pkgver}" || \
exit
"${_py}" \
setup.py \
install \
--root="${pkgdir}" \
--optimize=1 \
--skip-build
}
# vim:set sw=2 sts=-1 et:
|