summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e12542397824be3628da1d18baca00fc02b38c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>

pkgname='jtbl'
pkgver=1.1.6
pkgrel=2
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: