summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7cca00808498bdc96d643ce7e6925e66c601b52 (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
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
pkgname=python-constraint
pkgver=1.4.0
pkgrel=2
pkgdesc="Module implementing support for handling CSPs (Constraint Solving Problems) over finite domain"
arch=('x86_64')
url="https://github.com/python-constraint/python-constraint"
license=('custom:BSD')
depends=('python')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('6f38f4e7b07e7479ae77ad7dec00293189faa5885650defabf48f34875824c5d')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	python setup.py build
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
	# Delete example folder to avoid conflict files with python-cvxpy
	rm -r "${pkgdir}/usr/lib/python3.9/site-packages/examples"
}