summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99ec7e2612d96ce728a4b5c2067e4c234445cc8e (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
# Maintainer: Midov <midov@midov.pl>

pkgname=python-blist
_name=blist
pkgver=1.3.6
pkgrel=6
pkgdesc="A list-like type with better asymptotic performance"
arch=(i686 x86_64)
url="https://pypi.org/project/blist/"
license=('GPL')
depends=('python' 'python-setuptools')
source=(
	"https://files.pythonhosted.org/packages/6b/a8/dca5224abe81ccf8db81f8a2ca3d63e7a5fa7a86adc198d4e268c67ce884/${_name}-${pkgver}.tar.gz"
	"python-3.10.patch"
)
sha256sums=('3a12c450b001bdf895b30ae818d4d6d3f1552096b8c995f0fe0c74bef04d1fc3'
            'cc52718cdf04fca4c999a7ecfd2d389f83850663008e17633b7167c0e1e6642f')

prepare() {
	patch -p0 < python-3.10.patch
}
build() {
  cd "${srcdir}/${_name}-${pkgver}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_name}-${pkgver}"
  python setup.py install --root="$pkgdir/" --optimize=1
  chmod -R 0644 "$pkgdir"/usr/lib/python*/site-packages/*.egg-info
}