[arch-commits] Commit in python-libarchive-c/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 31 19:41:56 UTC 2019
Date: Thursday, October 31, 2019 @ 19:41:56
Author: felixonmars
Revision: 521706
archrelease: copy trunk to community-staging-any
Added:
python-libarchive-c/repos/community-staging-any/PKGBUILD
(from rev 521705, python-libarchive-c/trunk/PKGBUILD)
Deleted:
python-libarchive-c/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 110 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 55 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-31 19:41:44 UTC (rev 521705)
+++ PKGBUILD 2019-10-31 19:41:56 UTC (rev 521706)
@@ -1,55 +0,0 @@
-# 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:
Copied: python-libarchive-c/repos/community-staging-any/PKGBUILD (from rev 521705, python-libarchive-c/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-31 19:41:56 UTC (rev 521706)
@@ -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.9
+pkgrel=1
+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=('282791cef6ff67aefc238ce1b40783e3952b366fc5c464fe99557e81d91e8057b9ec339c52535917c251f9a9bffdd3ec2773c91cbb6c9881d9ecb8572cf0fc5b')
+
+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