[arch-commits] Commit in python-libarchive-c/repos (2 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sun Dec 25 22:47:22 UTC 2016
Date: Sunday, December 25, 2016 @ 22:47:21
Author: bpiotrowski
Revision: 202412
archrelease: copy trunk to community-staging-any
Added:
python-libarchive-c/repos/community-staging-any/
python-libarchive-c/repos/community-staging-any/PKGBUILD
(from rev 202411, python-libarchive-c/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-libarchive-c/repos/community-staging-any/PKGBUILD (from rev 202411, python-libarchive-c/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 22:47:21 UTC (rev 202412)
@@ -0,0 +1,41 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=python-libarchive-c
+pkgname=('python-libarchive-c' 'python2-libarchive-c')
+pkgver=2.7
+pkgrel=2
+pkgdesc='Python interface to libarchive'
+url='https://github.com/Changaco/python-libarchive-c'
+arch=('any')
+license=('CC0')
+makedepends=('python-setuptools' 'python2-setuptools' 'libarchive')
+checkdepends=('python-pytest-cov' 'python2-pytest-cov')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/Changaco/python-libarchive-c/archive/${pkgver}.tar.gz)
+sha512sums=('15ef4e3689d412fa524858067fc7f68cc909ffb916367d7edb3e0940f114385bab5d0f97a89f90ced59a5cf6d63e78c89d652f7817d6e49f38d244cc6316a424')
+
+prepare() {
+ cd ${pkgbase}-${pkgver}
+ sed '/os.umask(2)/d' -i setup.py
+}
+
+check() {
+ cd ${pkgbase}-${pkgver}
+ LC_CTYPE=en_US.UTF-8 py.test
+ LC_CTYPE=en_US.UTF-8 py.test2
+}
+
+package_python-libarchive-c() {
+ depends=('python' 'libarchive')
+ cd ${pkgbase}-${pkgver}
+ python setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+package_python2-libarchive-c() {
+ depends=('python2' 'libarchive')
+ cd ${pkgbase}-${pkgver}
+ python2 setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list