summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-03-27 15:54:41 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-03-27 15:54:41 (GMT)
commit693eec0e5a830a236d185129bb89a8f823ff0a5f (patch)
treeee125e1351ea023b4afc9276943e4aa51910bd03 /abs/core
parent29b103183bdf07dbf05f42688375d602b178dcc4 (diff)
downloadlinhes_pkgbuild-693eec0e5a830a236d185129bb89a8f823ff0a5f.zip
linhes_pkgbuild-693eec0e5a830a236d185129bb89a8f823ff0a5f.tar.gz
linhes_pkgbuild-693eec0e5a830a236d185129bb89a8f823ff0a5f.tar.bz2
python-dateutil: initial inclusion. dep of LinHES-system: myth_status.py
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-dateutil/PKGBUILD43
-rw-r--r--abs/core/python_modules/python-dateutil/__changelog1
2 files changed, 44 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-dateutil/PKGBUILD b/abs/core/python_modules/python-dateutil/PKGBUILD
new file mode 100644
index 0000000..5ce709f
--- /dev/null
+++ b/abs/core/python_modules/python-dateutil/PKGBUILD
@@ -0,0 +1,43 @@
+#Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
+#Contributor: lilydjwg <lilydjwg@gmail.com>
+
+pkgbase=python-dateutil
+pkgname=('python2-dateutil')
+pkgver=2.6.0
+pkgrel=2
+pkgdesc="Provides powerful extensions to the standard datetime module"
+arch=('any')
+license=('custom')
+url="https://github.com/dateutil/dateutil"
+makedepends=('python2-setuptools' 'python2-six')
+source=("$pkgbase-$pkgver.tar.gz"::"https://github.com/dateutil/dateutil/archive/$pkgver.tar.gz")
+md5sums=('7ac719938274be8da1ab870c3b35941c')
+
+build() {
+ cd $srcdir
+ cp -r dateutil-$pkgver python2-dateutil-$pkgver
+}
+
+package_python-dateutil() {
+depends=('python-six')
+ cd dateutil-$pkgver
+ python3 setup.py install --root=$pkgdir --optimize=1
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-dateutil() {
+depends=('python2-six')
+ cd $srcdir/python2-dateutil-$pkgver
+ python2 setup.py install --root=$pkgdir --optimize=1
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+check() {
+ cd dateutil-$pkgver
+ python3 updatezinfo.py
+ python3 setup.py test
+
+ cd $srcdir/python2-dateutil-$pkgver
+ python2 updatezinfo.py
+ python2 setup.py test
+}
diff --git a/abs/core/python_modules/python-dateutil/__changelog b/abs/core/python_modules/python-dateutil/__changelog
new file mode 100644
index 0000000..3dd9c2c
--- /dev/null
+++ b/abs/core/python_modules/python-dateutil/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 python-dateutils