[arch-commits] Commit in python-xlrd/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 25 17:29:03 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:29:00
  Author: foutrelis
Revision: 202097

archrelease: copy trunk to community-staging-any

Added:
  python-xlrd/repos/community-staging-any/
  python-xlrd/repos/community-staging-any/PKGBUILD
    (from rev 202096, python-xlrd/trunk/PKGBUILD)

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Copied: python-xlrd/repos/community-staging-any/PKGBUILD (from rev 202096, python-xlrd/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:29:00 UTC (rev 202097)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+# Contributor: tocer <tocer.deng at gmail.com>
+# Contributor: Piotr Beling <qwak at stud.ics.p.lodz.pl>
+# Contributor: Douglas Soares de Andrade <dsandrade at gmail.com>
+
+pkgbase=python-xlrd
+pkgname=('python2-xlrd' 'python-xlrd')
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Library for developers to extract data from Microsoft Excel (tm) spreadsheet files"
+arch=('any')
+url="http://www.python-excel.org/"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("https://github.com/python-excel/xlrd/archive/${pkgver}.tar.gz")
+md5sums=('72dfa4a43b300878e2e14f4209410d0d')
+
+build() {
+  cd "$srcdir"
+  cp -a xlrd-${pkgver} xlrd-py2-${pkgver}
+
+  msg "Building Python2"
+  cd "$srcdir"/xlrd-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/xlrd-${pkgver}
+  python setup.py build
+}
+
+package_python2-xlrd() {
+  depends=('python2')
+
+  cd "$srcdir"/xlrd-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+  mv "$pkgdir/usr/bin/runxlrd"{,2}.py
+
+  install -D -m644 "xlrd/licences.py" "$pkgdir/usr/share/licenses/$pkgname/licences.py"
+}
+
+package_python-xlrd() {
+  depends=('python')
+
+  cd "$srcdir"/xlrd-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -D -m644 "xlrd/licences.py" "$pkgdir/usr/share/licenses/$pkgname/licences.py"
+}
+



More information about the arch-commits mailing list