[arch-commits] Commit in python2-backports.lzma/repos (4 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Wed Oct 5 17:00:37 UTC 2016


    Date: Wednesday, October 5, 2016 @ 17:00:36
  Author: aginiewicz
Revision: 191404

archrelease: copy trunk to community-x86_64, community-i686

Added:
  python2-backports.lzma/repos/community-i686/
  python2-backports.lzma/repos/community-i686/PKGBUILD
    (from rev 191403, python2-backports.lzma/trunk/PKGBUILD)
  python2-backports.lzma/repos/community-x86_64/
  python2-backports.lzma/repos/community-x86_64/PKGBUILD
    (from rev 191403, python2-backports.lzma/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   37 +++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

Copied: python2-backports.lzma/repos/community-i686/PKGBUILD (from rev 191403, python2-backports.lzma/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-10-05 17:00:36 UTC (rev 191404)
@@ -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=1
+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"
+}
+

Copied: python2-backports.lzma/repos/community-x86_64/PKGBUILD (from rev 191403, python2-backports.lzma/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-10-05 17:00:36 UTC (rev 191404)
@@ -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=1
+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"
+}
+



More information about the arch-commits mailing list