[arch-commits] Commit in (4 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Wed Oct 5 16:58:10 UTC 2016


    Date: Wednesday, October 5, 2016 @ 16:58:09
  Author: aginiewicz
Revision: 191400

python2-backports.lzma: moving from AUR, new dependency of python2-pandas

Added:
  python2-backports.lzma/
  python2-backports.lzma/repos/
  python2-backports.lzma/trunk/
  python2-backports.lzma/trunk/PKGBUILD

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

Added: python2-backports.lzma/trunk/PKGBUILD
===================================================================
--- python2-backports.lzma/trunk/PKGBUILD	                        (rev 0)
+++ python2-backports.lzma/trunk/PKGBUILD	2016-10-05 16:58:09 UTC (rev 191400)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Philipp Schmitt <philipp at schmitt.co>
+
+pkgname=python2-backports.lzma
+pkgver=0.0.6
+pkgrel=0
+pkgdesc="Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files."
+arch=('x86_64' 'i686')
+url="https://github.com/peterjc/backports.lzma"
+license=('BSD')
+depends=('python2' 'xz')
+makedepends=('python2-setuptools')
+source=("https://github.com/peterjc/backports.lzma/archive/backports.lzma.v${pkgver}.tar.gz")
+md5sums=('442e61d79cdcdb5e6b71a988cbbbdc03')
+
+prepare() {
+  cd "${srcdir}"/backports.lzma-backports.lzma.v$pkgver
+
+  sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+    $(find "${srcdir}" -name '*.py')
+}
+
+build() {
+  cd "${srcdir}"/backports.lzma-backports.lzma.v$pkgver
+
+  python2 setup.py build
+}
+
+package() {
+  cd "${srcdir}"/backports.lzma-backports.lzma.v$pkgver
+
+  python2 setup.py install --skip-build --prefix=/usr --root="${pkgdir}" --optimize=1
+
+  install -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+


Property changes on: python2-backports.lzma/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list