summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f0b6a0c1b8d91170aa09b9e60ddf27ef9f04512 (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
# Maintainer: greyltc
# Maintainer: txtsd <aur.archlinux@ihavea.quest>

pkgname=python-pox
_pkgname="${pkgname#python-}"
pkgver=0.3.4
pkgrel=3
pkgdesc="utilities for filesystem exploration and automated builds"
url='https://github.com/uqfoundation/pox'
arch=(any)
license=('BSD-3-Clause')
depends=('python>=3.8')
makedepends=('python-setuptools>=42.0' 'python-build' 'python-installer' 'python-wheel')
_src_name="${_pkgname/-/_}-${pkgver}"
source=("${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('16e6eca84f1bec3828210b06b052adf04cf2ab20c22fd6fbef5f78320c9a6fed')

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

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