summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40f5650f391b5094ee0e1d3e73bca7a5819f940e (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
32
33
34
35
36
# Maintainer: cqzw555 <cqzw555@163.com>

_name=pycnite
pkgname=python-$_name
pkgver=2023.10.11
pkgrel=1
pkgdesc='Python bytecode utilities'
arch=(any)
url='https://github.com/google/pycnite.git'
license=('Apache-2.0')
depends=(
  'python'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)

source=(
  "https://files.pythonhosted.org/packages/source/p/$_name/$_name-$pkgver.tar.gz"
)
b2sums=(
  '162dab1fb94fbf7f18f8fc4093a5b9aa010cb0fe4a8779c313ad21630879acc2eb1e74cec3fff0ef68df9c118dc070ff3020635df520dbe9a5bcff0c8e86e982'
)

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

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