summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3bf942f6ffd653be3e6bd2b43bf71a3fdc8922e (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
# Maintainer: Sidney Kuyateh <autinerd-arch@kuyateh.eu>

pkgname=python-decopatch
pkgver=1.4.10
pkgrel=1
pkgdesc='python decorators made easy.'
url='https://smarie.github.io/python-decopatch/'
makedepends=(python-build python-installer python-wheel python-setuptools-scm)
depends=(python-makefun)
license=('GPL2')
arch=('any')
source=("git+https://github.com/smarie/${pkgname}.git#tag=${pkgver}")
sha512sums=('SKIP')

build() {
    cd "$srcdir/$pkgname"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$pkgname"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}