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

Felix Yan fyan at archlinux.org
Sun Sep 20 03:25:23 UTC 2015


    Date: Sunday, September 20, 2015 @ 05:25:23
  Author: fyan
Revision: 141154

archrelease: copy trunk to community-staging-any

Added:
  python-fs/repos/community-staging-any/
  python-fs/repos/community-staging-any/PKGBUILD
    (from rev 141153, python-fs/trunk/PKGBUILD)

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

Copied: python-fs/repos/community-staging-any/PKGBUILD (from rev 141153, python-fs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-20 03:25:23 UTC (rev 141154)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-fs
+pkgname=('python-fs' 'python2-fs')
+pkgver=0.5.3
+pkgrel=2
+pkgdesc="Filesystem abstraction layer"
+arch=('any')
+license=('custom:BSD')
+url="http://pypi.python.org/pypi/fs/"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'fuse' 'python2-paramiko')
+source=("https://pypi.python.org/packages/source/f/fs/fs-$pkgver.tar.gz")
+sha512sums=('fb0023a22c924b45ef0c4495f2890a3a757f1a2c5d53dba74a5d9e7f5944ee5b0a00f389d5352d7536e54da2a2ac46162f81608d3588bf2eeb16099af1b4fda0')
+
+prepare() {
+  cp -a fs-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/fs-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/fs-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/fs-$pkgver"
+  LC_CTYPE=en_US.utf8 python setup.py ptr || warning "Tests failed"
+
+  cd "$srcdir/fs-$pkgver-py2"
+  LC_CTYPE=en_US.utf8 python2 setup.py ptr || warning "Tests failed"
+}
+
+package_python-fs() {
+  depends=('python-setuptools' 'python-six')
+
+  cd fs-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-fs() {
+  depends=('python2-setuptools' 'python2-six')
+
+  cd fs-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  for f in fscat fscp fsinfo fsls fsmkdir fsmount fsmv fsrm fsserve fstree; do
+    mv "$pkgdir/usr/bin/$f"{,2}
+  done
+}



More information about the arch-commits mailing list