[arch-commits] Commit in python-astroid/repos (staging-any staging-any/PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Mon Mar 17 07:54:46 UTC 2014
Date: Monday, March 17, 2014 @ 08:54:46
Author: fyan
Revision: 208041
archrelease: copy trunk to staging-any
Added:
python-astroid/repos/staging-any/
python-astroid/repos/staging-any/PKGBUILD
(from rev 208040, python-astroid/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-astroid/repos/staging-any/PKGBUILD (from rev 208040, python-astroid/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2014-03-17 07:54:46 UTC (rev 208041)
@@ -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=2
+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