Date: Saturday, April 8, 2023 @ 15:27:18
  Author: felixonmars
Revision: 1442741

upgpkg: python-pysendfile 2.0.1-9: rebuild with python 3.11

Modified:
  python-pysendfile/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-08 15:23:29 UTC (rev 1442740)
+++ PKGBUILD    2023-04-08 15:27:18 UTC (rev 1442741)
@@ -4,7 +4,7 @@
 
 pkgname=python-pysendfile
 pkgver=2.0.1
-pkgrel=8
+pkgrel=9
 pkgdesc="A Python interface to sendfile(2) syscall"
 url="https://github.com/giampaolo/pysendfile";
 license=('MIT')
@@ -15,17 +15,17 @@
 
sha512sums=('d6ee08eb251fac30c90a9ee829fd992f3620697eef2893ced5a2c6273486c3c5fd35c70962585a8d747d578817391f91c929bfeeba8c4485d52a15748229ca9c')
 
 build() {
-  cd "$srcdir"/pysendfile-$pkgver
+  cd pysendfile-$pkgver
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/pysendfile-$pkgver
-  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10" python test/test_sendfile.py
+  cd pysendfile-$pkgver
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" 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
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to