[arch-commits] Commit in python-libarchive-c/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:33:34 UTC 2019
Date: Friday, October 25, 2019 @ 15:33:31
Author: felixonmars
Revision: 519090
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 519087, python-libarchive-c/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-libarchive-c/repos/community-staging-any/PKGBUILD (from rev 519087, python-libarchive-c/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:33:31 UTC (rev 519090)
@@ -0,0 +1,55 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=python-libarchive-c
+pkgname=('python-libarchive-c' 'python2-libarchive-c')
+pkgver=2.8
+pkgrel=4
+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' 'python-mock' 'python2-pytest-cov' 'python2-mock')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/Changaco/python-libarchive-c/archive/${pkgver}.tar.gz)
+sha512sums=('789e2b700d0a57c424d133d274bac2fdc1d26027a45f3b4827ea3d47ceccd40cc1bbd4baa8e5abeb4ee42267ac589e36e94700f35354ff2dd0274f64c1fdba93')
+
+prepare() {
+ sed '/os.umask(2)/d' -i ${pkgbase}-${pkgver}/setup.py
+ cp -a ${pkgbase}-${pkgver}{,-py2}
+}
+
+check() {
+ (cd ${pkgbase}-${pkgver}
+ LC_CTYPE=en_US.UTF-8 py.test
+ )
+ (cd ${pkgbase}-${pkgver}-py2
+ LC_CTYPE=en_US.UTF-8 py.test2
+ )
+}
+
+build() {
+ (cd ${pkgbase}-${pkgver}
+ python setup.py build
+ )
+ (cd ${pkgbase}-${pkgver}-py2
+ python2 setup.py build
+ )
+}
+
+package_python-libarchive-c() {
+ depends=('python' 'libarchive')
+ cd ${pkgbase}-${pkgver}
+ python setup.py install -O1 --root="${pkgdir}" --skip-build
+ install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+package_python2-libarchive-c() {
+ depends=('python2' 'libarchive')
+ cd ${pkgbase}-${pkgver}-py2
+ python2 setup.py install -O1 --root="${pkgdir}" --skip-build
+ install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list