[arch-commits] Commit in python-xattr/repos/community-x86_64 (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed May 13 09:20:26 UTC 2020
Date: Wednesday, May 13, 2020 @ 09:20:26
Author: jelle
Revision: 627551
archrelease: copy trunk to community-x86_64
Added:
python-xattr/repos/community-x86_64/PKGBUILD
(from rev 627550, python-xattr/trunk/PKGBUILD)
Deleted:
python-xattr/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 88 ++++++++++++++++++++++---------------------------------------
1 file changed, 33 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-13 09:20:17 UTC (rev 627550)
+++ PKGBUILD 2020-05-13 09:20:26 UTC (rev 627551)
@@ -1,55 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-xattr
-pkgname=('python-xattr' 'python2-xattr')
-pkgver=0.9.7
-pkgrel=1
-pkgdesc='Python wrapper for extended filesystem attributes'
-arch=('x86_64')
-license=('MIT')
-url='https://github.com/xattr/xattr'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/xattr/xattr/archive/v$pkgver.tar.gz")
-sha512sums=('4d94e929057a39c0f332e24aee1c2883580c71df94c9041313d4af2f11885803ab2c007546d5510ed647abcc70804e2fbaecf38f84d0a8457129c1336e5c8874')
-
-prepare() {
- cp -a xattr-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/xattr-$pkgver
- python setup.py build
-
- cd "$srcdir"/xattr-$pkgver-py2
- python2 setup.py build
-}
-
-check() { (
- # Build env doesn't have permission for those xattrs
- cd "$srcdir"/xattr-$pkgver
- python setup.py test
-
- cd "$srcdir"/xattr-$pkgver-py2
- python2 setup.py test
- ) || warning "Tests failed"
-}
-
-package_python-xattr() {
- depends=('python-cffi' 'python-setuptools')
-
- cd xattr-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}
-
-package_python2-xattr() {
- depends=('python2-cffi' 'python2-setuptools')
-
- cd xattr-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-
- mv "$pkgdir"/usr/bin/xattr{,2}
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-xattr/repos/community-x86_64/PKGBUILD (from rev 627550, python-xattr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-05-13 09:20:26 UTC (rev 627551)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-xattr
+pkgver=0.9.7
+pkgrel=2
+pkgdesc='Python wrapper for extended filesystem attributes'
+arch=('x86_64')
+license=('MIT')
+url='https://github.com/xattr/xattr'
+depends=('python-cffi' 'python-setuptools')
+makedepends=('python-setuptools' 'python-cffi')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/xattr/xattr/archive/v$pkgver.tar.gz")
+sha512sums=('4d94e929057a39c0f332e24aee1c2883580c71df94c9041313d4af2f11885803ab2c007546d5510ed647abcc70804e2fbaecf38f84d0a8457129c1336e5c8874')
+
+build() {
+ cd "$srcdir"/xattr-$pkgver
+ python setup.py build
+}
+
+check() { (
+ # Build env doesn't have permission for those xattrs
+ cd "$srcdir"/xattr-$pkgver
+ python setup.py test
+ ) || warning "Tests failed"
+}
+
+package() {
+ cd xattr-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list