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

Felix Yan fyan at archlinux.org
Mon May 16 03:31:28 UTC 2016


    Date: Monday, May 16, 2016 @ 05:31:27
  Author: fyan
Revision: 175438

archrelease: copy trunk to community-any

Added:
  python-clint/repos/community-any/PKGBUILD
    (from rev 175437, python-clint/trunk/PKGBUILD)
Deleted:
  python-clint/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   63 ++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 40 insertions(+), 23 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-05-16 03:31:12 UTC (rev 175437)
+++ PKGBUILD	2016-05-16 03:31:27 UTC (rev 175438)
@@ -1,23 +0,0 @@
-# $Id$
-# Maintainer: Alexander F Rødseth <rodseth at gmail.com>
-
-pkgname=python-clint
-pkgver=0.5.1
-pkgrel=1
-pkgdesc='Module for developing commandline applications'
-arch=('any')
-url='http://pypi.python.org/pypi/clint/'
-license=('custom:ISC')
-depends=('python')
-source=("http://pypi.python.org/packages/source/c/clint/clint-$pkgver.tar.gz")
-sha256sums=('05224c32b1075563d0b16d0015faaf9da43aa214e4a2140e51f08789e7a4c5aa')
-
-package() {
-  cd "clint-$pkgver"
-
-  python setup.py install \
-    --install-data="/usr/share/doc/$pkgname" --root="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-clint/repos/community-any/PKGBUILD (from rev 175437, python-clint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-05-16 03:31:27 UTC (rev 175438)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <rodseth at gmail.com>
+
+pkgbase=python-clint
+pkgname=(python-clint python2-clint)
+pkgver=0.5.1
+pkgrel=2
+pkgdesc='Module for developing commandline applications'
+arch=('any')
+url='http://pypi.python.org/pypi/clint/'
+license=('custom:ISC')
+makedepends=('python' 'python2')
+source=("http://pypi.python.org/packages/source/c/clint/clint-$pkgver.tar.gz")
+sha256sums=('05224c32b1075563d0b16d0015faaf9da43aa214e4a2140e51f08789e7a4c5aa')
+
+prepare() {
+  cp -a clint-$pkgver{,-py2}
+}
+
+package_python-clint() {
+  depends=('python')
+
+  cd "clint-$pkgver"
+
+  python setup.py install \
+    --install-data="/usr/share/doc/$pkgname" --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-clint() {
+  depends=('python2')
+
+  cd "clint-$pkgver-py2"
+
+  python setup.py install \
+    --install-data="/usr/share/doc/$pkgname" --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list