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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:20:15 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:20:15
  Author: felixonmars
Revision: 1058037

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pysendfile/repos/community-staging-x86_64/
  python-pysendfile/repos/community-staging-x86_64/PKGBUILD
    (from rev 1058032, python-pysendfile/trunk/PKGBUILD)

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

Copied: python-pysendfile/repos/community-staging-x86_64/PKGBUILD (from rev 1058032, python-pysendfile/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 20:20:15 UTC (rev 1058037)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-pysendfile
+pkgver=2.0.1
+pkgrel=7
+pkgdesc="A Python interface to sendfile(2) syscall"
+url="https://github.com/giampaolo/pysendfile"
+license=('MIT')
+arch=('x86_64')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://pypi.io/packages/source/p/pysendfile/pysendfile-$pkgver.tar.gz")
+sha512sums=('d6ee08eb251fac30c90a9ee829fd992f3620697eef2893ced5a2c6273486c3c5fd35c70962585a8d747d578817391f91c929bfeeba8c4485d52a15748229ca9c')
+
+build() {
+  cd "$srcdir"/pysendfile-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/pysendfile-$pkgver
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10" python test/test_sendfile.py
+}
+
+package() {
+  cd pysendfile-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list