summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurilo2015-09-16 23:04:19 +0300
committerAlexander Kurilo2015-09-16 23:06:34 +0300
commitd84caba6f1b4e39ceb9540d6c0091514487fda6e (patch)
tree942f57fcc6be585226e7f94de53dd3d79b5db91d
parent439763a6ba958aaeabd379cd220025d8d81779c5 (diff)
downloadaur-d84caba6f1b4e39ceb9540d6c0091514487fda6e.tar.gz
Build from tarball rather than from git
-rw-r--r--.SRCINFO9
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD22
3 files changed, 17 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index abc60c4a6ba..e19fc0fe5a7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,20 @@
pkgbase = csvkit-git
pkgdesc = A suite of utilities for converting to and working with CSV.
pkgver = 0.9.1.gbf18815
- pkgrel = 1
+ pkgrel = 2
url = http://csvkit.readthedocs.org
arch = any
license = MIT
- makedepends = git
+ makedepends = tar
+ makedepends = gzip
depends = python
depends = python-xlrd>=0.9.2
depends = python-dateutil>=2.0
depends = python-sqlalchemy>=0.9.3
depends = python-openpyxl>=2.0.3
depends = python-six>=1.6.1
- source = csvkit::git://github.com/onyxfish/csvkit.git
- md5sums = SKIP
+ source = csvkit-0.9.1.tar.gz::https://github.com/onyxfish/csvkit/archive/0.9.1.tar.gz
+ md5sums = 5708394caa93408254a15269a83cfeed
pkgname = csvkit-git
diff --git a/.gitignore b/.gitignore
index f0d06db0bac..effcdbfdac7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
-/csvkit-git-*.tar.gz
+/csvkit-*.tar.[gx]z
+/src
+/pkg
diff --git a/PKGBUILD b/PKGBUILD
index 2b23204b5be..5eea2d73c19 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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/"
}