[arch-commits] Commit in python-funcy/repos (community-any community-any/PKGBUILD)

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


    Date: Friday, October 28, 2016 @ 10:40:10
  Author: felixonmars
Revision: 193889

archrelease: copy trunk to community-any

Added:
  python-funcy/repos/community-any/
  python-funcy/repos/community-any/PKGBUILD
    (from rev 193888, python-funcy/trunk/PKGBUILD)

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

Copied: python-funcy/repos/community-any/PKGBUILD (from rev 193888, python-funcy/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-10-28 10:40:10 UTC (rev 193889)
@@ -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:



More information about the arch-commits mailing list