blob: 0b04dc34b950df173745d39a921de873831ab359 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $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=5
pkgdesc="Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX"
arch=('any')
url="http://docutils.sourceforge.net"
license=('custom')
depends=('python2')
source=(http://downloads.sourceforge.net/docutils/docutils-$pkgver.tar.gz)
md5sums=('9aec716baf15d06b5aa57cf8d5591c15')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
python2 setup.py install --root=${pkgdir} --optimize=1
for f in ${pkgdir}/usr/bin/*.py; do
ln -s $(basename $f) $pkgdir/usr/bin/$(basename $f .py)
done
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}/
}
|