summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Stahlberg2021-01-30 12:13:31 +0100
committerMaximilian Stahlberg2021-01-30 12:13:31 +0100
commit8a576c24a667839c629463f0c721aa9b1121a5ee (patch)
treee72a20abcf1812dc0a14ea25db80e5e431d1d398
parentd71ad72529e9eabdc944c19deb0cc92c216904c7 (diff)
downloadaur-8a576c24a667839c629463f0c721aa9b1121a5ee.tar.gz
Use a build/check/package flow.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD21
2 files changed, 16 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 37bf67de26b..fe95c95fc12 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-picos-git
pkgdesc = A Python interface to conic optimization solvers. Git version.
- pkgver = 2.1.r1.gbb51b36
+ pkgver = 2.1.r2.gf31ae78
pkgrel = 1
url = https://gitlab.com/picos-api/picos
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 2b2ffaedb31..483a9893417 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>
pkgname=python-picos-git
-pkgver=2.1.r1.gbb51b36
+pkgver=2.1.r2.gf31ae78
pkgrel=1
pkgdesc='A Python interface to conic optimization solvers. Git version.'
arch=('any')
@@ -20,15 +20,24 @@ optdepends=(
makedepends=('git' 'python-setuptools')
conflicts=('python-picos')
source=("picos::git+https://gitlab.com/picos-api/picos.git")
+md5sums=('SKIP')
pkgver() {
- cd picos
+ cd "${srcdir}/picos"
./version.py --aur
}
-package() {
- cd picos
- python setup.py install --root=${pkgdir}
+build() {
+ cd "${srcdir}/picos"
+ python setup.py build
}
-md5sums=('SKIP')
+check() {
+ cd "${srcdir}/picos/build/lib"
+ python -BIc "import picos"
+}
+
+package() {
+ cd "${srcdir}/picos"
+ python setup.py install --root=${pkgdir} --optimize=1 --skip-build
+}