summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6a29ee5a0882f54575d6206751951e2b854dae4 (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: Kevin MacMartin <prurigro at gmail dot com>

_pkgname=zombie-imp
pkgname=python-${_pkgname}
pkgver=0.0.2
pkgrel=1
pkgdesc='A copy of the imp module that was removed in Python 3.12'
arch=('any')
url='https://github.com/encukou/zombie-imp'
license=('GPL3')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://github.com/encukou/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('SKIP')

build() {
  cd $_pkgname-${pkgver}
  python -m build --wheel --no-isolation
}

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