summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9be72dd5edad0ef7432d64d6a954ee69d0b2bb74 (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
# Maintainer: AlphaJack <alphajack at tuta dot io>

pkgname="python-secure-cookie-git"
pkgver=0.2.0.r28.ge06d58d
pkgrel=1
pkgdesc="Secure cookies and sessions for WSGI "
url="https://github.com/pallets/secure-cookie"
license=("BSD")
arch=("any")
provides=("python-secure-cookie")
depends=("python" "python-werkzeug")
makedepends=("python-setuptools" "python-build" "python-wheel" "python-installer" "git")
source=("git+$url")
sha256sums=("SKIP")

pkgver(){
 cd "secure-cookie"
 git describe --long --tags | sed "s/\([^-]*-g\)/r\1/;s/-/./g"
}

build(){
 cd "secure-cookie"
 python -m build --wheel --no-isolation
}

package(){
 cd "secure-cookie"
 python -m installer --destdir="$pkgdir" dist/*.whl
}