diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-18 03:29:47 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-18 03:29:47 (GMT) |
commit | 5d2911d12d690d2f1dcd0ccf6aebc1d04c2b016f (patch) | |
tree | 6e522876def1e12ea3cf28ad6633bae7b2582a68 /abs/core | |
parent | 2b3a56fd0ae9a4f93686a779d2b3cc92139674e7 (diff) | |
download | linhes_pkgbuild-5d2911d12d690d2f1dcd0ccf6aebc1d04c2b016f.zip linhes_pkgbuild-5d2911d12d690d2f1dcd0ccf6aebc1d04c2b016f.tar.gz linhes_pkgbuild-5d2911d12d690d2f1dcd0ccf6aebc1d04c2b016f.tar.bz2 |
docutils: bump 4 python2
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/docutils/PKGBUILD | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/abs/core/docutils/PKGBUILD b/abs/core/docutils/PKGBUILD index d1240c4..0b04dc3 100644 --- a/abs/core/docutils/PKGBUILD +++ b/abs/core/docutils/PKGBUILD @@ -1,29 +1,32 @@ -# $Id: PKGBUILD 21893 2010-07-18 10:50:27Z spupykin $ -# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> -# Maintainer: tardo <tardo@nagi-fanboi.net> +# $Id: PKGBUILD 87861 2010-08-18 14:26:28Z ibiru $ +# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgname=docutils pkgver=0.7 -pkgrel=2 +pkgrel=5 pkgdesc="Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX" -arch=(any) +arch=('any') url="http://docutils.sourceforge.net" license=('custom') -depends=('python') +depends=('python2') source=(http://downloads.sourceforge.net/docutils/docutils-$pkgver.tar.gz) md5sums=('9aec716baf15d06b5aa57cf8d5591c15') build() { - pacman -Q docutils && { error "You should remove docutils" ; return 1; } + cd ${srcdir}/${pkgname}-${pkgver} + python2 setup.py install --root=${pkgdir} --optimize=1 - cd $srcdir/docutils-$pkgver - python setup.py install --root=$pkgdir - - for f in $pkgdir/usr/bin/*.py; do - mv $f $pkgdir/usr/bin/$(basename $f .py) + for f in ${pkgdir}/usr/bin/*.py; do + ln -s $(basename $f) $pkgdir/usr/bin/$(basename $f .py) done - install -D -m644 COPYING.txt $pkgdir/usr/share/licenses/$pkgname/COPYING.txt - install -D -m644 licenses/python* $pkgdir/usr/share/licenses/$pkgname/ + sed -e 's|#! /usr/bin/env python|#!/usr/bin/env python2|' \ + -i ${pkgdir}/usr/lib/python2.7/site-packages/docutils/readers/python/pynodes.py + sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \ + -i ${pkgdir}/usr/lib/python2.7/site-packages/docutils/_string_template_compat.py + + install -D -m644 COPYING.txt ${pkgdir}/usr/share/licenses/${pkgname}/COPYING.txt + install -D -m644 licenses/python* ${pkgdir}/usr/share/licenses/${pkgname}/ } |