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

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 16:19:32 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:19:31
  Author: foutrelis
Revision: 140932

archrelease: copy trunk to community-staging-any

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

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

Copied: python-xlsxwriter/repos/community-staging-any/PKGBUILD (from rev 140931, python-xlsxwriter/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 16:19:31 UTC (rev 140932)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-xlsxwriter
+pkgname=('python2-xlsxwriter' 'python-xlsxwriter')
+pkgver=0.7.3
+pkgrel=2
+pkgdesc="A Python module for creating Excel XLSX files"
+arch=('any')
+url="https://github.com/jmcnamara/XlsxWriter"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("https://pypi.python.org/packages/source/X/XlsxWriter/XlsxWriter-${pkgver}.tar.gz")
+md5sums=('090a2d2b0c3c654ba44954be29306371')
+
+prepare() {
+  cd "$srcdir"
+  cp -a XlsxWriter-${pkgver} XlsxWriter-py2-${pkgver}
+}
+
+build() {
+  msg "Building Python2"
+  cd "$srcdir"/XlsxWriter-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/XlsxWriter-${pkgver}
+  python setup.py build
+}
+
+package_python2-xlsxwriter() {
+  depends=('python2')
+
+  cd "$srcdir"/XlsxWriter-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -D -m644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  mv "$pkgdir"/usr/bin/vba_extract{,2}.py
+}
+
+package_python-xlsxwriter() {
+  depends=('python')
+
+  cd "$srcdir"/XlsxWriter-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -D -m644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+



More information about the arch-commits mailing list