[arch-commits] Commit in python-astroid/repos (testing-any testing-any/PKGBUILD)
Ángel Velásquez
angvp at nymeria.archlinux.org
Sun Dec 22 06:21:23 UTC 2013
Date: Sunday, December 22, 2013 @ 07:21:23
Author: angvp
Revision: 202443
archrelease: copy trunk to testing-any
Added:
python-astroid/repos/testing-any/
python-astroid/repos/testing-any/PKGBUILD
(from rev 202442, python-astroid/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-astroid/repos/testing-any/PKGBUILD (from rev 202442, python-astroid/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2013-12-22 06:21:23 UTC (rev 202443)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+
+pkgbase=python-astroid
+pkgname=('python2-astroid' 'python-astroid')
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Useful miscellaneous modules used by Logilab projects"
+arch=('any')
+url="http://www.logilab.org/project/logilab-common"
+license=('LGPL')
+makedepends=('python2' 'python')
+source=(https://pypi.python.org/packages/source/a/astroid/astroid-${pkgver}.tar.gz)
+sha1sums=('4b0080576174cc0a3519a6c6e9025a8ee853956a')
+
+build() {
+ cd "${srcdir}"
+
+ cp -a astroid-${pkgver}{,-py3}
+
+ cd astroid-${pkgver}
+ python2 setup.py build
+
+ cd ../astroid-${pkgver}-py3
+ python3 setup.py build
+}
+
+package_python2-astroid() {
+ depends=('python2' 'python2-logilab-common')
+ replaces=('python2-logilab-astng')
+ conflicts=('python2-logilab-astng')
+ cd "${srcdir}"/astroid-${pkgver}
+
+ python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
+
+ # fix permissions ...
+ find "${pkgdir}" -type f -exec chmod +r {} \;
+}
+
+package_python-astroid() {
+ depends=('python' 'python-logilab-common')
+ replaces=('python-logilab-astng')
+ conflicts=('python-logilab-astng')
+ cd "${srcdir}"/astroid-${pkgver}-py3
+
+ python3 setup.py install --optimize=1 --skip-build --prefix=/usr --root="${pkgdir}"
+
+ # fix permissions ...
+ find "${pkgdir}" -type f -exec chmod +r {} \;
+}
More information about the arch-commits
mailing list