summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 522f9309a83c9e319f6a6958b03bd3e91720c0d6 (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
# Contributor: Valère Monseur <archlinux at vale dot re>

pkgname=python-bootstrap-flask
pkgver=2.5.0
pkgrel=1
pkgdesc="Bootstrap 4 helper for Flask/Jinja2"
url="https://github.com/greyli/bootstrap-flask"
arch=('any')
license=('MIT')
depends=('python' 'python-flask' 'python-markupsafe' 'python-wtforms')
makedepends=('python-build' 'python-installer' 'python-setuptools')
checkdepends=('python-pytest' 'python-flask-sqlalchemy' 'python-flask-wtf')
conflicts=('python-flask-bootstrap')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/greyli/bootstrap-flask/archive/${pkgver}.tar.gz")
sha512sums=('a4bf8d1152737c9a34f8b516c3eae3dc88bc7ac9332f37652375527b2e618d550da07342fca889fc15870db8e03cb031e3d290d88ecb3d8cb38b81bd701484ab')

build() {
  cd bootstrap-flask-"$pkgver"
  python -m build --wheel --no-isolation
}

check() {
  cd bootstrap-flask-"$pkgver"
  pytest
}

package() {
  cd bootstrap-flask-"$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}