blob: ed91d2fa5f23e125c646b2c7c4699179742f175f (
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
|
# Maintainer: Gavin Lloyd <gavinhungry@gmail.com>
_pkgname=bitvector-for-humans
pkgname=python-${_pkgname}
pkgver=0.14.1
pkgrel=1
pkgdesc='A simple pure python Bit Vector class for Humans'
arch=('i686' 'x86_64')
url='https://github.com/JnyJny/bitvector'
license=('Apache')
makedepends=('python-setuptools' 'python-poetry')
source=("${url}/archive/${pkgver}.tar.gz")
sha256sums=('2a3178a0cf73638e09e8b9a3191f797d80ad283c975f4daef3b34dffbac98b92')
build() {
cd "${srcdir}/bitvector-${pkgver}/bitvector"
POETRY_CACHE_DIR=${srcdir}/poetry-cache poetry build -f sdist
cd "${srcdir}/bitvector-${pkgver}"
tar xf dist/${_pkgname}-${pkgver}.tar.gz
cd "${_pkgname}-${pkgver}"
python setup.py build
}
package() {
cd "${srcdir}/bitvector-${pkgver}/${_pkgname}-${pkgver}"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|