blob: c75a01c0654858e27d7dd35cd2fe9cc7d51c244d (
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
52
53
54
55
56
57
|
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-docutils
_pkgname=docutils
pkgver=0.11
pkgrel=1
pkgdesc="Documentation Utilities for Python"
url="http://docutils.sourceforge.net/"
arch="noarch"
license="PublicDomain"
depends="python py-pillow 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" || return 1
}
doc() {
cd "$_builddir"
for _docdir in docs licenses; do
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/$_docdir \
|| return 1
cp -R ./$_docdir/* "$subpkgdir"/usr/share/doc/$pkgname/$_docdir/ \
|| return 1
chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/$_docdir/ \
|| return 1
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/ \
|| return 1
done
# Fix subdir perms
find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \;
}
md5sums="20ac380a18b369824276864d98ec0ad6 docutils-0.11.tar.gz"
sha256sums="9af4166adf364447289c5c697bb83c52f1d6f57e77849abcccd6a4a18a5e7ec9 docutils-0.11.tar.gz"
sha512sums="8e87581b27ce4fb5e97dcef56047f4bf3a076b98e9e42f5dc66f4c370e5893d1571e46f00fee6f1c8b9f8c8a79e128e4599b9ee213ad1dee2bf16a0246e187df docutils-0.11.tar.gz"
|