summaryrefslogtreecommitdiffstats
path: root/abs/core/docutils/PKGBUILD
blob: d1240c47e99c760207262474e083735ef191701a (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
# $Id: PKGBUILD 21893 2010-07-18 10:50:27Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: tardo <tardo@nagi-fanboi.net>

pkgname=docutils
pkgver=0.7
pkgrel=2
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=('python')
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/docutils-$pkgver
  python setup.py install --root=$pkgdir

  for f in $pkgdir/usr/bin/*.py; do
      mv $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/
}