summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bc301828f3ec75f67cc4db9feb5356f509683bc (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
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com

set -u
_pybase='cement'
pkgname="python-${_pybase}"
pkgver='3.0.12'
#pkgver='2.8.2' # for aws-eb-cli
pkgrel='1'
pkgdesc='CLI application framework for Python'
arch=('any')
#url="https://pypi.python.org/pypi/${_pybase}/"
url='https://builtoncement.com/'
license=('Apache-2.0') #custom: ISC
makedepends=('python')
makedepends+=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') # PEP517
makedepends+=('python-pdm-backend')
#checkdepends=(
#  "python-pytest>=4.3.1"
#  "python-pytest-cov>=2.6.1"
#  "python-coverage>=4.5.3"
#  "python-mypy>=1.9.0"
#  "python-ruff>=0.3.2"
#  "python-mock>=5.1.0"
#)
_srcdir="${_pybase}-${pkgver}"
#_verwatch=("https://pypi.org/simple/${_pybase}/" "${_pybase}-\([0-9\.]\+\)\.tar\.gz" 't')
source=("https://pypi.io/packages/source/${_pybase: 0:1}/${_pybase}/${_pybase}-${pkgver}.tar.gz")
md5sums=('e17409cbf91cba60ea9dcba07bea529e')
sha256sums=('9c4a7c6c644edb06d0a9d4fe246c9be06b0ba713a283e9288a6c4676c3e0c15b')

build() {
  set -u
  cd "${_srcdir}"
  python -m build --wheel --no-isolation
  set +u
}

package() {
  set -u
  cd "${_srcdir}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dpm '644' 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
  install -Dpm '644' 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}"
  set +u
}
set +u
# vim:set ts=2 sw=2 et: