diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 28 |
3 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bb76c2279199 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = jtbl + pkgdesc = Simple cli tool to print JSON and JSON Lines data as a table in the terminal + pkgver = 1.1.6 + pkgrel = 1 + url = https://github.com/kellyjonbrazil/jtbl + arch = any + license = MIT + makedepends = python-setuptools + depends = python-tabulate + source = https://files.pythonhosted.org/packages/source/j/jtbl/jtbl-1.1.6.tar.gz + sha256sums = 3623d4942b80bbd9f64c2f672c52862dad7e0d1245094a2416f04a09773b8660 + +pkgname = jtbl + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..623d0e70ff3e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cbd5ff0b6043 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +pkgname='jtbl' +pkgver=1.1.6 +pkgrel=1 +pkgdesc='Simple cli tool to print JSON and JSON Lines data as a table in the terminal' +arch=('any') +url='https://github.com/kellyjonbrazil/jtbl' +_url_pypi='https://pypi.org/project/jtbl' +license=('MIT') +depends=('python-tabulate') +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") +sha256sums=('3623d4942b80bbd9f64c2f672c52862dad7e0d1245094a2416f04a09773b8660') + +build() { + cd "${pkgname}-${pkgver}" + python setup.py build +} + +package() { + cd "${pkgname}-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim: ts=2 sw=2 et: |