[arch-commits] Commit in python-xlwt/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 13:12:21 UTC 2015
Date: Saturday, September 19, 2015 @ 15:12:21
Author: fyan
Revision: 140807
archrelease: copy trunk to community-staging-any
Added:
python-xlwt/repos/community-staging-any/
python-xlwt/repos/community-staging-any/PKGBUILD
(from rev 140806, python-xlwt/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-xlwt/repos/community-staging-any/PKGBUILD (from rev 140806, python-xlwt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 13:12:21 UTC (rev 140807)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+# Contributor: David Moore <davidm at sjsoft.com>
+
+pkgbase=python-xlwt
+pkgname=('python2-xlwt' 'python-xlwt')
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files"
+arch=('any')
+url="http://www.python-excel.org/"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("https://pypi.python.org/packages/source/x/xlwt/xlwt-${pkgver}.tar.gz")
+md5sums=('5e5e4eae8fe7ee3d43f9324767ad925e')
+
+build() {
+ cd "$srcdir"
+ cp -a xlwt-${pkgver} xlwt-py2-${pkgver}
+
+ msg "Building Python2"
+ cd "$srcdir"/xlwt-py2-${pkgver}
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/xlwt-${pkgver}
+ python setup.py build
+}
+
+package_python2-xlwt() {
+ depends=('python2')
+
+ cd "$srcdir"/xlwt-py2-${pkgver}
+
+ python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/licenses.rst "$pkgdir/usr/share/licenses/$pkgname/licences.rst"
+}
+
+package_python-xlwt() {
+ depends=('python')
+
+ cd "$srcdir"/xlwt-${pkgver}
+
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/licenses.rst "$pkgdir/usr/share/licenses/$pkgname/licences.rst"
+}
+
More information about the arch-commits
mailing list