blob: 1206517d4a631e1b3e5cb614b7fc92ecfc24cf2d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-docutils
_pkgname=docutils
pkgver=0.7
pkgrel=2
pkgdesc="Documentation Utilities for Python"
url="http://docutils.sourceforge.net/"
arch="noarch"
license="PublicDomain"
depends="python py-imaging py-roman"
makedepends="python-dev py-setuptools"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --root "$pkgdir"
}
doc() {
cd "$_builddir"
for docdir in docs licenses; do
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/$docdir
cp -R ./$docdir/* "$subpkgdir"/usr/share/doc/$pkgname/$docdir/
chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/$docdir/
done
for doc in BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt THANKS.txt; do
install -m644 -D $doc "$subpkgdir"/usr/share/doc/$pkgname/
done
# Fix subdir perms
find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \;
}
md5sums="9aec716baf15d06b5aa57cf8d5591c15 docutils-0.7.tar.gz"
|