summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorandalenavals2017-12-31 16:45:59 -0500
committerandalenavals2017-12-31 16:45:59 -0500
commitf06cf15398dcde7db244d5c8f96c4427e9ab4544 (patch)
tree36271338f3c2cecc3053d3b36f110a9e35e20a2b
parentbddc3917be95fd5c780c9a1dcf0ea3a8f2532c09 (diff)
downloadaur-f06cf15398dcde7db244d5c8f96c4427e9ab4544.tar.gz
Changing to split PKGBUILD
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD32
2 files changed, 33 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 99d0383cee9..c957aaa11fa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,14 +8,19 @@ pkgbase = python-galsim-git
license = BSD
makedepends = git
makedepends = scons
+ makedepends = boost
+ source = python-galsim::git+https://github.com/GalSim-developers/GalSim.git
+ md5sums = SKIP
+
+pkgname = python-galsim-git
depends = python
depends = boost-libs
depends = fftw
depends = tmv-git
- provides = python-galsim
- conflicts = python-galsim
- source = python-galsim::git+https://github.com/GalSim-developers/GalSim.git
- md5sums = SKIP
-pkgname = python-galsim-git
+pkgname = python2-galsim-git
+ depends = python2
+ depends = boost-libs
+ depends = fftw
+ depends = tmv-git
diff --git a/PKGBUILD b/PKGBUILD
index 4c00d535271..67ee6ef41c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,14 @@
# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co>
# Contributor: GalSim developers team on GitHub
_pkgname=python-galsim
-pkgname=${_pkgname}-git
+pkgname=('python-galsim-git' 'python2-galsim-git' )
pkgver=v1.5.1.r0.9de448ef9
pkgrel=1
pkgdesc=" The modular galaxy image simulation toolkit "
arch=('i686' 'x86_64')
url="https://github.com/GalSim-developers/GalSim.git"
license=('BSD')
-depends=('python' 'boost-libs' 'fftw' 'tmv-git')
-makedepends=('git' 'scons' )
-provides=("${_pkgname}")
-conflicts=("${_pkgname}")
+makedepends=('git' 'scons' 'boost')
source=("${_pkgname}::git+${url}")
md5sums=('SKIP')
@@ -20,13 +17,30 @@ pkgver() {
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
+#check() {
+# cd "${_pkgname}"/tests
+# nosetests -v
+
+# cd "${_pkgname}"/tests
+# nosetests2 -v
+#}
+
build() {
cd "${_pkgname}"
scons PREFIX=/usr TMV_DIR=/usr PYTHON=python
+ scons PREFIX=/usr TMV_DIR=/usr PYTHON=python2
+}
+
+package_python-galsim-git() {
+ depends=('python' 'boost-libs' 'fftw' 'tmv-git')
+ cd "${_pkgname}"
+ scons PREFIX=$pkgdir/usr FINAL_PREFIX=/usr PYTHON=python install
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
-package() {
- cd "${_pkgname}"
- scons PREFIX=$pkgdir/usr FINAL_PREFIX=/usr install
- install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+package_python2-galsim-git() {
+ depends=('python2' 'boost-libs' 'fftw' 'tmv-git')
+ cd "${_pkgname}"
+ scons PREFIX=$pkgdir/usr FINAL_PREFIX=/usr PYTHON=python2 install
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}