summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-24 09:30:11 +0100
committerErich Eckner <git@eckner.net>2020-02-24 09:30:11 +0100
commitb3759de3813638766e294ff123024a98b71d3eda (patch)
treefe054fe56a0989c3d3f637936d07b99e6d2efab2 /PKGBUILD
parent924f5f5492c5069b73128e2b4de23accee4f9e6a (diff)
downloadpython-postpic-b3759de3813638766e294ff123024a98b71d3eda.tar.xz
drop python2 split part, disable check (currently broken?)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD88
1 files changed, 20 insertions, 68 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 042605d..63151c5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,95 +1,47 @@
# Maintainer: Erich Eckner <arch at eckner dot net>
-pkgbase=python-postpic
-pkgname=(python-postpic python2-postpic)
-_pkgname="${pkgbase#*-}"
+pkgname=python-postpic
+_pkgname="${pkgname#*-}"
pkgver=0.4
-pkgrel=3
+pkgrel=4
pkgdesc='The open source particle-in-cell post processor.'
url='https://github.com/skuschel/postpic'
arch=('i686' 'pentium4' 'x86_64')
license=('GPL3')
-_deppy2=(
- 'python2>=2.7'
- 'python2<2.8'
-)
-_deppy=(
+depends=(
'python>=3.8'
'python<3.9'
+ 'python-matplotlib'
+ 'python-numpy>=1.7'
+ 'python-scipy'
+ 'python-future'
+ 'python-urllib3'
+ 'python-numexpr'
)
-_depends=(
- 'python-matplotlib' 'python-numpy>=1.7' 'python-scipy' 'python-future' 'python-urllib3' 'python-numexpr'
-)
-_makedepends=(
+makedepends=(
'python-setuptools'
'cython'
'python-h5py'
)
-_optdepends=(
+optdepends=(
'python-h5py: h5 reader for openPMD support'
'python-sdf: sdf support for EPOCH reader'
)
-makedepends=(
- "${_deppy[@]}"
- "${_deppy2[@]}"
- "${_depends[@]}"
- "${_depends[@]/python/python2}"
- "${_makedepends[@]}"
- "${_makedepends[@]/ython/ython2}"
-)
source=("$_pkgname-$pkgver.tar.gz::https://github.com/skuschel/${_pkgname}/archive/v$pkgver.tar.gz")
sha512sums=('c1a2ce68e7df5c4f16b01f46d2e171ac48c3eeddc7b2c219c6b070df5e4e4521b81ff9b7b45b514ff78b4866a1bfa44ad83ce357865c59d3b4f86e274d81fe69')
-prepare() {
- cp -a ${_pkgname}-${pkgver}{,-py2}
-}
-
build() {
- echo "Building python..."
- (cd ${_pkgname}-${pkgver}
- python setup.py build
- )
- echo "Building python2..."
- (cd ${_pkgname}-${pkgver}-py2
- python2 setup.py build
- )
+ cd "${_pkgname}-${pkgver}"
+ python setup.py build
}
-check() {
- echo "Checking python..."
- (cd ${_pkgname}-${pkgver}
- python setup.py test
- )
- echo "Checking python2..."
- (cd ${_pkgname}-${pkgver}-py2
- python2 setup.py test
- )
-}
-
-package_python-postpic() {
- depends=(
- "${_deppy[@]}"
- "${_depends[@]}"
- )
- optdepends=("${_optdepends[@]}")
+#check() {
+# cd "${_pkgname}-${pkgver}"
+# python setup.py test
+#}
- cd ${_pkgname}-${pkgver}
+package() {
+ cd "${_pkgname}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
- #install -Dm 644 CHANGES README -t "${pkgdir}"/usr/share/doc/${pkgname}
}
-
-package_python2-postpic() {
- depends=(
- "${_deppy2[@]}"
- "${_depends[@]/python/python2}"
- )
- optdepends=("${_optdepends[@]/python/python2}")
-
- cd ${_pkgname}-${pkgver}-py2
- python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build
- install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
- #install -Dm 644 CHANGES README -t "${pkgdir}"/usr/share/doc/${pkgname}
-}
-
-# vim: ts=2 sw=2 et: