summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormschubert2019-01-06 21:34:58 +0100
committermschubert2019-01-06 21:34:58 +0100
commit3cff083c853c0817f763aa7a52ea4f7a765fcaa5 (patch)
tree28d5c70f48d3f3b24b262c49d76c92d7686e1a42
parentf1395172d3688df3f086ddb96cdce14c98d81d66 (diff)
downloadaur-3cff083c853c0817f763aa7a52ea4f7a765fcaa5.tar.gz
proper split pkg; add check
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD26
2 files changed, 33 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 77922258553..e11223ef7cd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,25 @@
pkgbase = python-rchitect
pkgdesc = Minimal R API for Python
pkgver = 0.2.4
- pkgrel = 1
- url = https://github.com/randy3k/rapi
- arch = i686
- arch = x86_64
+ pkgrel = 2
+ url = https://github.com/randy3k/rchitect
+ arch = any
license = MIT
+ checkdepends = python2-pytest
+ checkdepends = python-pytest
makedepends = python-setuptools
- depends = r>3.4.0
- depends = python-multipledispatch
- source = https://github.com/randy3k/rchitect/archive/v0.2.4.tar.gz
+ makedepends = python2-setuptools
+ makedepends = python-six>=1.9.0
+ makedepends = python2-six>=1.9.0
+ source = rchitect-0.2.4.tar.gz::https://github.com/randy3k/rchitect/archive/v0.2.4.tar.gz
sha256sums = 122e81c69bf73411b8b1ee021684e0e56d944f1b857102e455831a13ff79f0c8
pkgname = python-rchitect
+ depends = r>3.4.0
+ depends = python-multipledispatch
+ replaces = python-rapi
pkgname = python2-rchitect
+ depends = r>3.4.0
+ depends = python2-multipledispatch
diff --git a/PKGBUILD b/PKGBUILD
index d95ffa9e783..8eaa8bcc537 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,28 +2,40 @@
pkgname=(python-rchitect python2-rchitect)
_pkgname=${pkgname#python-}
pkgver=0.2.4
-pkgrel=1
+pkgrel=2
pkgdesc="Minimal R API for Python"
-url="https://github.com/randy3k/rapi"
-arch=('i686' 'x86_64')
+url="https://github.com/randy3k/$_pkgname"
+arch=('any')
license=('MIT')
-depends=('r>3.4.0' 'python-multipledispatch')
-makedepends=('python-setuptools')
-#replaces=('python-rapi')
-source=("https://github.com/randy3k/rchitect/archive/v$pkgver.tar.gz")
+makedepends=('python-setuptools' 'python2-setuptools'
+ 'python-six>=1.9.0' 'python2-six>=1.9.0')
+checkdepends=('python2-pytest' 'python-pytest')
+source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('122e81c69bf73411b8b1ee021684e0e56d944f1b857102e455831a13ff79f0c8')
build() {
cd "$srcdir/$_pkgname-$pkgver"
+ # build step only copies files, same for python and python2
python setup.py build
}
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py test
+ python2 setup.py test
+}
+
package_python-rchitect() {
+ depends=('r>3.4.0' 'python-multipledispatch')
+ replaces=('python-rapi')
+
cd "$srcdir/$_pkgname-$pkgver"
python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}
package_python2-rchitect() {
+ depends=('r>3.4.0' 'python2-multipledispatch')
+
cd "$srcdir/$_pkgname-$pkgver"
python2 setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}