summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 225865e345c78c17767e49e24aca753ca9d96f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=python-mycgi
pkgver=0.0.4
pkgrel=1
pkgdesc='Python3 replacement for the deprecated cgi module'
arch=('any')
url='https://github.com/ronaaronson/mycgi'
license=('Apache-2.0')
depends=('python' 'python-multipart')
makedepends=(python-build python-installer python-wheel)
source=("$pkgname-$pkgver.tar.gz::https://github.com/ronaaronson/mycgi/archive/refs/tags/${pkgver}.tar.gz")
sha1sums=('ccc7b185ebe6d44cadfed83380d9a13715b84c73')

build() {
    #cd $_name-$pkgver
    cd "mycgi-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    #cd $_name-$pkgver
    cd "mycgi-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}