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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 17:59:54 UTC 2018


    Date: Saturday, June 30, 2018 @ 17:59:54
  Author: foutrelis
Revision: 348803

archrelease: copy trunk to community-staging-any

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

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

Copied: python-xlsxwriter/repos/community-staging-any/PKGBUILD (from rev 348801, python-xlsxwriter/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 17:59:54 UTC (rev 348803)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgbase=python-xlsxwriter
+pkgname=('python2-xlsxwriter' 'python-xlsxwriter')
+pkgver=1.0.5
+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://github.com/jmcnamara/XlsxWriter/archive/RELEASE_${pkgver}.tar.gz")
+sha1sums=('ecd688357e55ac539abe91e611b3bbebc533806e')
+
+prepare() {
+  cd "$srcdir"
+  cp -a XlsxWriter-RELEASE_${pkgver} XlsxWriter-py2-RELEASE_${pkgver}
+}
+
+build() {
+  msg "Building Python2"
+  cd "$srcdir"/XlsxWriter-py2-RELEASE_${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/XlsxWriter-RELEASE_${pkgver}
+  python setup.py build
+}
+
+package_python2-xlsxwriter() {
+  depends=('python2')
+
+  cd "$srcdir"/XlsxWriter-py2-RELEASE_${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-RELEASE_${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