diff options
author | Alexander Kurilo | 2016-03-09 00:04:01 +0300 |
---|---|---|
committer | Alexander Kurilo | 2016-03-09 00:05:15 +0300 |
commit | a24dda64177b1a1a342b9f4f4719ef0f254672d1 (patch) | |
tree | b70b10a427370fdd8a34a51276953316716f54c0 | |
parent | 872e91269aacac4e1957831a5469ae35fe90fc3a (diff) | |
download | aur-a24dda64177b1a1a342b9f4f4719ef0f254672d1.tar.gz |
Add agate into csvkit build
-rw-r--r-- | .gitignore | 10 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 50 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore index a5c9292af031..f758791f2a7e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,12 @@ -/csvkit-*.tar.[gx]z +# Package created by makepkg +/csvkit-git-*.xz + +# Cloned by makepkg /csvkit/ +/agate/ +/agate-excel/ +/agate-dbf/ + +# Created by makepkg /src/ /pkg/ @@ -4,16 +4,39 @@ pkgname=csvkit-git pkgver=0.9.1.r280.g48f9602 -pkgrel=1 +pkgrel=2 pkgdesc="A suite of utilities for converting to and working with CSV." arch=('any') url="http://csvkit.readthedocs.org" license=('MIT') makedepends=('git') -depends=('python' 'python-xlrd>=0.9.2' 'python-dateutil>=2.0' 'python-sqlalchemy>=0.9.3' 'python-openpyxl>=2.0.3' 'python-six>=1.6.1') -makedepends=('git' 'python-setuptools') -md5sums=('SKIP') -source=('csvkit::git://github.com/wireservice/csvkit.git') +depends=( + 'python' + 'python-xlrd>=0.9.4' # for csvkit and agate + 'python-dateutil>=2.2' + 'python-sqlalchemy>=0.9.3' + 'python-openpyxl>=2.0.3' # for csvkit and agate + 'python-six>=1.6.1' # for csvkit and agate + 'python-isodate>=0.5.4' # for agate + 'python-parsedatetime>=1.5' # for agate + 'python-pytimeparse>=1.1.5' #for agate +) +makedepends=( + 'git' + 'python-setuptools' +) +md5sums=( + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' +) +source=( + 'csvkit::git://github.com/wireservice/csvkit.git' + 'agate::git://github.com/wireservice/agate.git' + 'agate-excel::git://github.com/wireservice/agate-excel.git' + 'agate-dbf::git://github.com/wireservice/agate-dbf.git' +) pkgver() { cd "$srcdir/csvkit" @@ -31,5 +54,18 @@ build() { package() { cd "$srcdir/csvkit" python setup.py install --root="$pkgdir/" + + cd "$srcdir/agate" + python setup.py install --root="$pkgdir/" + + cd "$srcdir/agate-excel" + python setup.py install --root="$pkgdir/" + + cd "$srcdir/agate-dbf" + python setup.py install --root="$pkgdir/" + + test -d "$srcdir/tmp" || mkdir "$srcdir/tmp" + #chmod +r "$pkgdir" + TMPDIR="$srcdir/tmp" pip install 'Babel>=2.0' dbfread --root "$pkgdir/" } |