[arch-commits] Commit in python-pysendfile/repos/community-staging-x86_64 (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Oct 31 18:04:43 UTC 2019
Date: Thursday, October 31, 2019 @ 18:04:42
Author: felixonmars
Revision: 521525
archrelease: copy trunk to community-staging-x86_64
Added:
python-pysendfile/repos/community-staging-x86_64/PKGBUILD
(from rev 521524, python-pysendfile/trunk/PKGBUILD)
Deleted:
python-pysendfile/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 102 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 51 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-31 18:04:34 UTC (rev 521524)
+++ PKGBUILD 2019-10-31 18:04:42 UTC (rev 521525)
@@ -1,51 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
-# Contributor: Kyle Keen <keenerd at gmail.com>
-
-pkgbase=python-pysendfile
-pkgname=(python-pysendfile python2-pysendfile)
-pkgver=2.0.1
-pkgrel=3
-pkgdesc="A Python interface to sendfile(2) syscall"
-url="https://github.com/giampaolo/pysendfile"
-license=('MIT')
-arch=('x86_64')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("https://pypi.io/packages/source/p/pysendfile/pysendfile-$pkgver.tar.gz")
-sha512sums=('d6ee08eb251fac30c90a9ee829fd992f3620697eef2893ced5a2c6273486c3c5fd35c70962585a8d747d578817391f91c929bfeeba8c4485d52a15748229ca9c')
-
-prepare() {
- cp -a pysendfile-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/pysendfile-$pkgver
- python setup.py build
-
- cd "$srcdir"/pysendfile-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/pysendfile-$pkgver
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8" python test/test_sendfile.py
-
- cd "$srcdir"/pysendfile-$pkgver-py2
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7" python2 test/test_sendfile.py
-}
-
-package_python-pysendfile() {
- depends=('python')
-
- cd pysendfile-$pkgver
- python3 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pysendfile() {
- depends=('python2')
-
- cd pysendfile-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-pysendfile/repos/community-staging-x86_64/PKGBUILD (from rev 521524, python-pysendfile/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-31 18:04:42 UTC (rev 521525)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-pysendfile
+pkgname=(python-pysendfile python2-pysendfile)
+pkgver=2.0.1
+pkgrel=4
+pkgdesc="A Python interface to sendfile(2) syscall"
+url="https://github.com/giampaolo/pysendfile"
+license=('MIT')
+arch=('x86_64')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/p/pysendfile/pysendfile-$pkgver.tar.gz")
+sha512sums=('d6ee08eb251fac30c90a9ee829fd992f3620697eef2893ced5a2c6273486c3c5fd35c70962585a8d747d578817391f91c929bfeeba8c4485d52a15748229ca9c')
+
+prepare() {
+ cp -a pysendfile-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pysendfile-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pysendfile-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pysendfile-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8" python test/test_sendfile.py
+
+ cd "$srcdir"/pysendfile-$pkgver-py2
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7" python2 test/test_sendfile.py
+}
+
+package_python-pysendfile() {
+ depends=('python')
+
+ cd pysendfile-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pysendfile() {
+ depends=('python2')
+
+ cd pysendfile-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list