je voudrai installer python2-xlrd, ce pkg est disponible sur AUR, mais est marqué out-of-date
voici le PKGBUILD:
Code : Tout sélectionner
# Maintainer: tocer <tocer.deng@gmail.com>
# Contributor: Piotr Beling <qwak@stud.ics.p.lodz.pl>
# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
pkgname=python2-xlrd
pkgver=0.7.1
pkgrel=1
pkgdesc="A library for developers to use to extract data from Microsoft Excel (tm) spreadsheet files."
url="http://www.lexicon.net/sjmachin/xlrd.htm"
depends=('python2')
conflicts=("python-xlrd")
source=(http://pypi.python.org/packages/source/x/xlrd/xlrd-$pkgver.tar.gz)
arch=('any')
license=('BSD')
md5sums=('d0439a7ad1ae583a6ba3942efd0189c8')
build() {
cd $startdir/src/xlrd-$pkgver
python2 setup.py install --root=$pkgdir
sed -i '1i\#!/usr/bin/env python2' $pkgdir/usr/bin/runxlrd.py
chmod 755 $pkgdir/usr/bin/runxlrd.py
}
ma question est comment faire pour renommer runxlrd.py en runxlrd2.py ?It does not have to conflict with python-xlrd you just have to rename runxlrd.py to runxlrd2.py or runxlrd.py2 or runxlrd-python2 or whatever the only thing that matters is that it happens to exist for both versions^^
un simple mv avant le chmod ?
j'ai tenté de le renommer dans la ligne du sed et du chmod mais la compilation me retourne une erreur dans le build :
Code : Tout sélectionner
running install_scripts
creating /tmp/yaourt-tmp-steeve/aur-python2-xlrd/pkg/usr/bin
copying build/scripts-2.7/runxlrd.py -> /tmp/yaourt-tmp-steeve/aur-python2-xlrd/pkg/usr/bin
changing mode of /tmp/yaourt-tmp-steeve/aur-python2-xlrd/pkg/usr/bin/runxlrd.py to 755
running install_egg_info
Writing /tmp/yaourt-tmp-steeve/aur-python2-xlrd/pkg/usr/lib/python2.7/site-packages/xlrd-0.7.1-py2.7.egg-info
sed: impossible de lire /tmp/yaourt-tmp-steeve/aur-python2-xlrd/pkg/usr/bin/runxlrd2.py: Aucun fichier ou dossier de ce type
==> ERREUR : Une erreur s'est produite dans build().
Abandon...
