blob: 32832ebf08645bc8e7bbe92e9911e838e12b8631 (
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
58
59
60
61
62
63
64
|
# Maintainer: Chris Severance aur.severach AatT spamgourmet.com
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Alexander Kurilo <alex@kurilo.me>
# Contributor: Mariusz Szczepańczyk <mszczepanczyk@gmail.com>
# Contributor: Thor K. H. <thor alfakrøll roht dott no>
pkgname=csvkit-git
pkgver=1.0.4.r29.g9b76055
pkgrel=1
pkgdesc='A suite of utilities for converting to and working with CSV'
arch=('any')
url='http://csvkit.readthedocs.org'
license=('MIT')
depends=(
'python'
'python-agate-dbf>=0.2.0'
'python-agate-excel>=0.2.2'
'python-agate-sql>=0.5.3'
'python-agate>=1.6.1'
'python-babel'
'python-dateutil'
'python-openpyxl'
'python-six>=1.6.1'
'python-sphinx_rtd_theme>=0.1.6'
'python-sqlalchemy'
'python-xlrd'
)
optdepends=(
'ipython: nicer command-line for csvpy utility'
)
makedepends=(
'python-setuptools'
'python-sphinx>=1.2.2'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git://github.com/wireservice/${pkgname/-/.}")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
python setup.py build
python setup.py build_sphinx
_rtd_theme_path="$(python -c 'import sphinx_rtd_theme; print(sphinx_rtd_theme.get_html_theme_path())')"
rm -rvf "build/sphinx/html/_static"
ln -svf "$_rtd_theme_path/sphinx_rtd_theme/static" "build/sphinx/html/_static"
}
check() {
cd "$pkgname"
python setup.py test
}
package() {
cd "$pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
mkdir -p "$pkgdir/usr/share/doc"
cp -rv "build/sphinx/html" "$pkgdir/usr/share/doc/$pkgname"
}
|