summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Heitzmann Gabrielli2020-10-17 15:49:26 -0300
committerLucas Heitzmann Gabrielli2020-10-17 15:49:26 -0300
commit0973b0bd3a895809eda2760a8455ee135754b44b (patch)
tree72a34580295b17b800369b82bbaa036ca2ec1a5f
downloadaur-0973b0bd3a895809eda2760a8455ee135754b44b.tar.gz
Inital commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD31
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a9a7ae1387d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-slepc4py-git
+ pkgdesc = Python bindings for PETSc
+ pkgver = 20201014
+ pkgrel = 1
+ url = https://gitlab.com/slepc/slepc4py
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = slepc-git
+ depends = python-petsc4py-git
+ provides = slepc4py
+ conflicts = slepc4py
+ options = !emptydirs
+ source = slepc4py::git+https://gitlab.com/slepc/slepc4py.git
+ md5sums = SKIP
+
+pkgname = python-slepc4py-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c46faff67c0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com>
+
+pkgname=python-slepc4py-git
+pkgdesc="Python bindings for PETSc"
+pkgver=20201014
+pkgrel=1
+arch=('i686' 'x86_64')
+url="https://gitlab.com/slepc/slepc4py"
+provides=(slepc4py)
+conflicts=(slepc4py)
+license=('custom')
+depends=('slepc-git' 'python-petsc4py-git')
+options=(!emptydirs)
+source=("slepc4py::git+https://gitlab.com/slepc/slepc4py.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd slepc4py
+ git log --format="%cd" --date=short -1 | sed 's/-//g'
+}
+
+build() {
+ cd slepc4py
+ python setup.py build
+}
+
+package() {
+ cd slepc4py
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+ install -Dm 644 LICENSE.rst ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst
+}