summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Savannah2017-06-18 01:55:21 -0400
committerTim Savannah2017-06-18 01:55:21 -0400
commit756bba471de36c089a074d64217aa9b142ecc09c (patch)
treeb7a5ac813b1563f4a10e89f7131ad56f915c6451
downloadaur-python2-jsontocsv.tar.gz
Add python2 jsonToCsv 1.0.1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD31
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..27d3e8f9020
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python2-jsontocsv
+ pkgdesc = Extract data from json and convert to CSV
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = http://github.com/kata198/jsonToCsv
+ arch = any
+ license = LGPLv3
+ makedepends = python2-setuptools
+ makedepends = python2
+ depends = python2-setuptools
+ depends = python2
+ source = https://github.com/kata198/jsonToCsv/archive/1.0.1.tar.gz
+ sha512sums = 003671c2e50e7b45621494a5edb34171db829ee74f5471381fb3173cd546d35609eb38fa392315352f90da6b809fbdc1cc839b724a456335d60cb90c9598725a
+
+pkgname = python2-jsontocsv
+ pkgdesc = Python3 lib to extract data from json and convert to CSV
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4aaa452fe31
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Tim Savannah <kata198@gmail.com>
+
+# Just the python2 libs. The tools are based on python3 and can be
+# found in the "jsontocsv" package
+
+pkgname='python2-jsontocsv'
+_realName='jsonToCsv'
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Extract data from json and convert to CSV"
+arch=('any')
+license=('LGPLv3')
+url="http://github.com/kata198/jsonToCsv"
+makedepends=('python2-setuptools' 'python2')
+depends=('python2-setuptools' 'python2')
+source=("https://github.com/kata198/jsonToCsv/archive/${pkgver}.tar.gz")
+sha512sums=("003671c2e50e7b45621494a5edb34171db829ee74f5471381fb3173cd546d35609eb38fa392315352f90da6b809fbdc1cc839b724a456335d60cb90c9598725a")
+
+build() {
+ cd "$srcdir/${_realName}-$pkgver"
+ python2 setup.py build
+}
+
+package_python2-jsontocsv() {
+ pkgdesc="Python3 lib to extract data from json and convert to CSV"
+ cd "${_realName}-$pkgver"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # Remove tools from lib package
+ rm -Rf "$pkgdir/usr/bin"
+}