summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7e9c00a603e289a1c73e54bfdf81a989673da42 (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
# SPDX-License-Identifier: AGPL-3.0
#
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
# Maintainer:  Truocolo <truocolo@aol.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>

# shellcheck disable=SC2034
_py="python2"
_pkg="packaging"
_pkgbase="python-${_pkg}"
pkgbase="${_py}-${_pkg}"
pkgname=(
  "${pkgbase}"
)
pkgver=20.9
pkgrel=7
pkgdesc="Core utilities for Python packages"
arch=(
  'any'
)
_http="https://github.com"
_ns="pypa"
url="${_http}/${_ns}/${_pkg}"
license=(
  'Apache'
)
makedepends=(
  "${_py}-setuptools"
  "${_py}-pyparsing"
)
source=(
  "${url}/archive/${pkgver}/${_pkgbase}-${pkgver}.tar.gz"
)
sha512sums=(
  'fb71f1036cfaacbe94fdee663af31d6ad1960f73ecc95cba87b461c2d7d2ea90085853bb4682b146492d8c48f784b60ef082e3b1259269857166b143cd9a920b'
)

build() {
  cd \
    "${_pkg}-${pkgver}" || \
    exit
  "${_py}" \
    setup.py \
      build
}

# shellcheck disable=SC2154
package() {
  depends=(
    "${_py}-pyparsing"
    "${_py}-six"
  )
  cd \
    "${_pkg}-${pkgver}" || \
    exit
  "${_py}" \
    setup.py \
      install \
      --root="${pkgdir}"
}

# vim:set sw=2 sts=-1 et: