blob: fcdcded697fe5d84dcbaa436fd666bd9055ffc34 (
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
|
# SPDX-License-Identifier: AGPL-3.0
#
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Maintainer: Truocolo <truocolo@aol.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Tobias Roettger <toroettg@gmail.com>
# shellcheck disable
_py="python2"
_pkg="appdirs"
pkgname=(
"${_py}-${_pkg}"
)
pkgver=1.4.4
pkgrel=6
_pkgdesc=(
'A small Python module for determining'
'appropriate platform-specific dirs,'
'e.g. a "user data dir".'
)
pkgdesc="${_pkgdesc[*]}"
arch=(
'any'
)
url="https://github.com/ActiveState/${_pkg}"
license=(
'MIT'
)
makedepends=(
"${_py}-setuptools"
)
_pypi="https://pypi.io/packages/source"
_url="${_pypi}/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz"
source=(
"${_url}"
)
sha512sums=(
'8b0cdd9fd471d45b186aa47607691cf378dabd3edc7b7026a57bd6d6f57698e86f440818a5e23ba4288b35d6bb8cb6eb0106eae8aab09d8863ee15025d300883'
)
prepare() {
cp \
-a \
"${_pkg}-${pkgver}"{,-py2}
}
build() {
cd \
"${srcdir}/${_pkg}-${pkgver}-py2"
"${_py}" \
setup.py \
build
}
check() {
cd \
"${srcdir}/${_pkg}-${pkgver}-py2"
"${_py}" \
setup.py \
test
}
package() {
depends=(
"${_py}"
)
cd \
"${_pkg}-${pkgver}-py2"
"${_py}" \
setup.py \
install \
--root="${pkgdir}" \
--optimize=1
install \
-Dm644 \
LICENSE.txt \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
# vim:set sw=2 sts=-1 et:
|