diff options
author | Alexander Kurilo | 2015-09-16 23:04:19 +0300 |
---|---|---|
committer | Alexander Kurilo | 2015-09-16 23:06:34 +0300 |
commit | d84caba6f1b4e39ceb9540d6c0091514487fda6e (patch) | |
tree | 942f57fcc6be585226e7f94de53dd3d79b5db91d /PKGBUILD | |
parent | 439763a6ba958aaeabd379cd220025d8d81779c5 (diff) | |
download | aur-d84caba6f1b4e39ceb9540d6c0091514487fda6e.tar.gz |
Build from tarball rather than from git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -1,26 +1,22 @@ # Maintainer: Alexander Kurilo <alex@kurilo.me> # Contributor: Mariusz SzczepaĆczyk <mszczepanczyk@gmail.com> - +gittag=0.9.1 +gitrev=gbf18815 pkgname=csvkit-git -pkgver=0.9.1.gbf18815 -pkgrel=1 +pkgver=$gittag.$gitrev +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') -md5sums=('SKIP') -source=('csvkit::git://github.com/onyxfish/csvkit.git') - -pkgver() { - cd "$srcdir/csvkit" - git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' -} +makedepends=('tar' 'gzip') +md5sums=('5708394caa93408254a15269a83cfeed') +source=("csvkit-$gittag.tar.gz::https://github.com/onyxfish/csvkit/archive/$gittag.tar.gz") build() { - cd "$srcdir/csvkit" + cd "$srcdir/csvkit-$gittag" # Quick and dirty fix until the author officially supports dateutil>=2.2 # (see https://github.com/onyxfish/csvkit/issues/370) sed -i 's/python-dateutil==2.2/python-dateutil>=2.2/' setup.py @@ -28,7 +24,7 @@ build() { } package() { - cd "$srcdir/csvkit" + cd "$srcdir/csvkit-$gittag" python setup.py install --root="$pkgdir/" } |