[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 28 10:39:53 UTC 2016


    Date: Friday, October 28, 2016 @ 10:39:52
  Author: felixonmars
Revision: 193888

addpkg: python-funcy 1.7.1-1

Added:
  python-funcy/
  python-funcy/repos/
  python-funcy/trunk/
  python-funcy/trunk/PKGBUILD

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

Added: python-funcy/trunk/PKGBUILD
===================================================================
--- python-funcy/trunk/PKGBUILD	                        (rev 0)
+++ python-funcy/trunk/PKGBUILD	2016-10-28 10:39:52 UTC (rev 193888)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-funcy
+pkgname=('python-funcy' 'python2-funcy')
+pkgver=1.7.1
+pkgrel=1
+pkgdesc='A fancy and practical functional tools'
+arch=('any')
+license=('BSD')
+url='https://github.com/Suor/funcy'
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-whatever' 'python2-whatever')
+source=("git+https://github.com/Suor/funcy.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a funcy{,-py2}
+}
+
+build() {
+  cd "$srcdir"/funcy
+  python setup.py build
+
+  cd "$srcdir"/funcy-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/funcy
+  python setup.py ptr
+
+  cd "$srcdir"/funcy-py2
+  python2 setup.py ptr
+}
+
+package_python-funcy() {
+  depends=('python')
+
+  cd funcy
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-funcy() {
+  depends=('python2')
+
+  cd funcy-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-funcy/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list