summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Savannah2017-06-18 01:52:34 -0400
committerTim Savannah2017-06-18 01:52:34 -0400
commita3ee8aca1ac2a23feb54d06592a335f986a3211b (patch)
tree54daf0fb0568570832ffc5f4ce7b3b5308746d81
downloadaur-a3ee8aca1ac2a23feb54d06592a335f986a3211b.tar.gz
Add jsonToCsv 1.0.1 tools and python3 lib
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD36
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cd121f9b6bd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = python-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 = python-setuptools
+ makedepends = python
+ depends = python-setuptools
+ depends = python
+ source = https://github.com/kata198/jsonToCsv/archive/1.0.1.tar.gz
+ sha512sums = 003671c2e50e7b45621494a5edb34171db829ee74f5471381fb3173cd546d35609eb38fa392315352f90da6b809fbdc1cc839b724a456335d60cb90c9598725a
+
+pkgname = python-jsontocsv
+ pkgdesc = Python3 lib to extract data from json and convert to CSV
+
+pkgname = jsontocsv
+ depends = python
+ depends = python-setuptools
+ depends = python-jsontocsv
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3746af872c5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Tim Savannah <kata198@gmail.com>
+
+pkgname=('python-jsontocsv' '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=('python-setuptools' 'python')
+depends=('python-setuptools' 'python')
+source=("https://github.com/kata198/jsonToCsv/archive/${pkgver}.tar.gz")
+sha512sums=("003671c2e50e7b45621494a5edb34171db829ee74f5471381fb3173cd546d35609eb38fa392315352f90da6b809fbdc1cc839b724a456335d60cb90c9598725a")
+
+build() {
+ cd "$srcdir/${_realName}-$pkgver"
+ python setup.py build
+}
+
+package_python-jsontocsv() {
+ pkgdesc="Python3 lib to extract data from json and convert to CSV"
+ cd "${_realName}-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # Remove tools from lib package
+ rm -Rf "$pkgdir/usr/bin"
+}
+package_jsontocsv() {
+ depends=('python' 'python-setuptools' 'python-jsontocsv')
+ cd "${_realName}-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # Remove lib from tools package
+ rm -Rf "${pkgdir}/usr/lib"
+}