summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-16 16:51:34 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-16 16:51:34 (GMT)
commit2d9a588cb09f138d582707b1ffa7eab2a893dbeb (patch)
tree5fba9d9641fa8041899f6a396c542966cb250944 /abs/core
parent8d7bbe838e8306398fc92a9434d6f95cbb739e23 (diff)
downloadlinhes_pkgbuild-2d9a588cb09f138d582707b1ffa7eab2a893dbeb.zip
linhes_pkgbuild-2d9a588cb09f138d582707b1ffa7eab2a893dbeb.tar.gz
linhes_pkgbuild-2d9a588cb09f138d582707b1ffa7eab2a893dbeb.tar.bz2
python-tzlocal: initial inclusion. dep of flexget
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-tzlocal/PKGBUILD45
-rw-r--r--abs/core/python_modules/python-tzlocal/__changelog1
2 files changed, 46 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-tzlocal/PKGBUILD b/abs/core/python_modules/python-tzlocal/PKGBUILD
new file mode 100644
index 0000000..b4e6905
--- /dev/null
+++ b/abs/core/python_modules/python-tzlocal/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: eolianoe <eolianoe At GoogleMAIL DoT com>
+# Contributor: Étienne Deparis <etienne [at] depar.is>
+# Contributor: Patrice Peterson <runiq at archlinux dot us>
+# Contributor: Patrick Burroughs <celticmadman at gmail dot com>
+
+_pyname=tzlocal
+pkgbase=python-${_pyname}
+pkgname=("python2-${_pyname}")
+pkgver=1.4
+pkgrel=1
+pkgdesc="Tzinfo object for the local timezone"
+arch=('any')
+url='https://pypi.python.org/pypi/tzlocal'
+license=('custom')
+makedepends=('python2-setuptools')
+source=("${_pyname}-${pkgver}.tar.gz::https://github.com/regebro/${_pyname}/archive/${pkgver}.tar.gz")
+sha256sums=('d3cdf502a4ae4b566abf948924e837b6c354aaed082eb1326c6c9043824cb4a7')
+
+prepare() {
+ cp -a ${_pyname}-${pkgver}{,-py2}
+}
+
+build() {
+# cd "${srcdir}/${_pyname}-$pkgver"
+# python setup.py build
+
+ cd "${srcdir}/${_pyname}-$pkgver-py2"
+ python2 setup.py build
+}
+
+package_python2-tzlocal() {
+ depends=('python2-pytz')
+ cd "${srcdir}/${_pyname}-${pkgver}-py2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python-tzlocal() {
+ depends=('python-pytz')
+ cd "${srcdir}/${_pyname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-tzlocal/__changelog b/abs/core/python_modules/python-tzlocal/__changelog
new file mode 100644
index 0000000..c6e1e55
--- /dev/null
+++ b/abs/core/python_modules/python-tzlocal/__changelog
@@ -0,0 +1 @@
+PKGBUILD: don't build py 3 stuff