[arch-commits] Commit in python-libarchive-c/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:34:26 UTC 2020


    Date: Monday, November 9, 2020 @ 15:34:26
  Author: felixonmars
Revision: 746986

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 746985, python-libarchive-c/trunk/PKGBUILD)

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

Copied: python-libarchive-c/repos/community-staging-any/PKGBUILD (from rev 746985, python-libarchive-c/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:34:26 UTC (rev 746986)
@@ -0,0 +1,37 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-libarchive-c
+pkgver=2.9
+pkgrel=2
+pkgdesc='Python interface to libarchive'
+url='https://github.com/Changaco/python-libarchive-c'
+arch=('any')
+license=('CC0')
+depends=('python' 'libarchive')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-mock')
+source=(${pkgname}-${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
+}
+
+check() {
+  cd ${pkgbase}-${pkgver}
+  LC_CTYPE=en_US.UTF-8 py.test
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  python setup.py build
+}
+
+package() {
+  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}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list