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

Felix Yan fyan at archlinux.org
Sat Sep 19 13:30:06 UTC 2015


    Date: Saturday, September 19, 2015 @ 15:30:06
  Author: fyan
Revision: 140825

archrelease: copy trunk to community-staging-any

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

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

Copied: python-xlrd/repos/community-staging-any/PKGBUILD (from rev 140824, python-xlrd/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 13:30:06 UTC (rev 140825)
@@ -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=0.9.4
+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://pypi.python.org/packages/source/x/xlrd/xlrd-${pkgver}.tar.gz")
+md5sums=('911839f534d29fe04525ef8cd88fe865')
+
+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