[arch-commits] Commit in python-frozenlist/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 20:20:49 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:20:49
Author: felixonmars
Revision: 1058061
archrelease: copy trunk to community-staging-x86_64
Added:
python-frozenlist/repos/community-staging-x86_64/
python-frozenlist/repos/community-staging-x86_64/PKGBUILD
(from rev 1058057, python-frozenlist/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-frozenlist/repos/community-staging-x86_64/PKGBUILD (from rev 1058057, python-frozenlist/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-30 20:20:49 UTC (rev 1058061)
@@ -0,0 +1,41 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+
+_pyname=frozenlist
+pkgname=python-${_pyname}
+pkgver=1.2.0
+pkgrel=2
+pkgdesc='FrozenList is a list-like structure which can be made immutable'
+url='https://github.com/aio-libs/frozenlist'
+arch=('x86_64')
+license=('Apache')
+depends=('python')
+makedepends=('python-setuptools' 'cython')
+checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-runner')
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('e5dda13e173db0b1c6e8c5a61949534f4eb30211cc4fcd102d0be1b55ee48e2db90d52fd770a2c6d6076f3a0d9e11289629a7a115c1270377636eda35d107e7a')
+b2sums=('cc82db759906ad3e0be1806cacd6815377f264ed07ed272abb7da4753c11561564cf1cb4dfc0154abaeb4005f5607c26e602410a4ef45dd8e94e26583caa2ab7')
+
+prepare() {
+ cd "${_pyname}-${pkgver}"
+ sed 's|.install-cython ||' -i Makefile
+}
+
+build() {
+ cd "${_pyname}-${pkgver}"
+ make cythonize
+ python setup.py build
+}
+
+check() {
+ cd "${_pyname}-${pkgver}"
+ python setup.py test
+}
+
+package() {
+ cd "${_pyname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 CHANGES.rst README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list