summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17cf08323230ef0df8896036d07d4bd87da22f45 (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
# Maintainer: haxibami <contact at haxibami dot net>

pkgname=python-pylzss
_pkgname=pylzss
pkgver=0.3.8
pkgrel=1
pkgdesc='A collection of common interactive command line user interfaces, based on Inquirer.js (fork of magmax/python-inquirer)'
arch=('any')
url='https://github.com/m1stadev/pylzss'
license=('LGPL3')
depends=('python')
makedepends=('python-build' 'python-wheel' 'python-installer' 'python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('5be1221710ddf3174550881b66f25e90637f00256633c9cdba83e025e4e6ca8c')

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

# check() {
#   cd "${srcdir}/${_pkgname}-${pkgver}"
#   local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
#   export PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-cpython-${python_version}"
#   python test.py
# }

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
  install -Dm644 COPYING.LESSER "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.LESSER"
}