summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f87aeeee9accfc6718677c56eef8874a4e07ecc (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
# Maintainer: sfn

pkgname=python-pyseq
pkgver=0.9.3
pkgrel=1
pkgdesc="Python sequence string module"
arch=(any)
url="https://pyseq.rsgalloway.com/#"
license=('BSD-3-Clause ')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'git')
source=("${pkgname}::git+https://github.com/rsgalloway/pyseq.git#tag=${pkgver}")
sha256sums=('SKIP')

_name=${pkgname#python-}

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

package() {
	cd "${srcdir}/${pkgname}"
	local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
	python -m installer --destdir="$pkgdir/usr/lib/python${python_version}/site-packages/$_name" dist/*.whl
	install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}