summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18cc1f0609d48bbf1ef9f0f6fc689f8f258b7737 (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
# Maintainer:
# Contributor: Brenden Davidson <davidson.brenden15@gmail.com>

## useful links:
# https://webpy.org/

_module="webpy"
_pkgname="python-$_module"
pkgname="$_pkgname"
pkgver=0.70
pkgrel=2
pkgdesc="A web framework for Python"
url="https://github.com/webpy/webpy"
license=('LicenseRef-scancode-public-domain')
arch=("any")

depends=(
  'python'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)

_tag="$_module-$pkgver"
_pkgsrc="$_module-$_tag"
_pkgext="tar.gz"
source=("$_module-${pkgver%%.r*}.$_pkgext"::"$url/archive/refs/tags/$_tag.$_pkgext")
sha256sums=('eee36e423b5e85463145159d94735e3c3a4c1c8078555042d8139348350b0022')

build() {
  cd "$_pkgsrc"
  python -m build --no-isolation --wheel
}

package() {
  depends+=(
    'python-cheroot'
    'python-multipart'
  )

  cd "$_pkgsrc"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}