diff options
author | Xiretza | 2021-01-25 13:47:31 +0100 |
---|---|---|
committer | Xiretza | 2021-01-25 13:47:31 +0100 |
commit | 7b28e0c028607b2d46ec83d1d9098861628c3e51 (patch) | |
tree | 8dac7acde6b1461f71f0bcc3a6b5fe5da153ff2a | |
download | aur-7b28e0c028607b2d46ec83d1d9098861628c3e51.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..acaba3238465 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-constraint-git + pkgdesc = Solvers for Constraint Satisfaction Problems (CSPs) over finite domains in simple and pure Python + pkgver = 1.4.0.r4.ge23fe98 + pkgrel = 1 + url = https://github.com/python-constraint/python-constraint + arch = any + license = BSD + checkdepends = python-pytest + makedepends = git + makedepends = python-setuptools + depends = python + provides = python-constraint=1.4.0.r4.ge23fe98 + conflicts = python-constraint + source = git+https://github.com/python-constraint/python-constraint.git + sha256sums = SKIP + +pkgname = python-constraint-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9ad851e50b3d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: xiretza <xiretza+aur@xiretza.xyz> + +_pkgname=python-constraint +pkgname=$_pkgname-git +pkgver=1.4.0.r4.ge23fe98 +pkgrel=1 +pkgdesc="Solvers for Constraint Satisfaction Problems (CSPs) over finite domains in simple and pure Python" +arch=(any) +url="https://github.com/python-constraint/python-constraint" +license=('BSD') +depends=('python') +makedepends=('git' 'python-setuptools') +checkdepends=('python-pytest') +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +source=("git+$url.git") +sha256sums=('SKIP') + +pkgver() { + cd "$_pkgname" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + + +build() { + cd "$_pkgname" + + python setup.py build +} + +check() { + cd "$_pkgname" + + touch tests/__init__.py + pytest +} + +package() { + cd "$_pkgname" + + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |