Date: Wednesday, April 20, 2022 @ 08:03:26 Author: grawlinson Revision: 1187120
addpkg: pgcli 3.4.1-2 Added: pgcli/ pgcli/repos/ pgcli/trunk/ pgcli/trunk/PKGBUILD ----------+ PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) Added: pgcli/trunk/PKGBUILD =================================================================== --- pgcli/trunk/PKGBUILD (rev 0) +++ pgcli/trunk/PKGBUILD 2022-04-20 08:03:26 UTC (rev 1187120) @@ -0,0 +1,55 @@ +# Maintainer: George Rawlinson <[email protected]> +# Contributor: a821 +# Contributor: asm0dey <[email protected]> +# Contributor: Sven-Hendrik Haase <[email protected]> + +pkgname=pgcli +pkgver=3.4.1 +pkgrel=2 +pkgdesc='A command line interface for PostgreSQL with auto-completion and syntax highlighting' +url='https://www.pgcli.com/' +arch=('any') +license=('BSD') +depends=( + 'python' + 'python-sqlparse' + 'python-psycopg2' + 'python-click' + 'python-prompt_toolkit' + 'python-configobj' + 'python-pgspecial' + 'python-setproctitle' + 'python-cli_helpers' + 'python-keyring' + 'python-pygments' + 'python-pendulum' +) +makedepends=('git' 'python-setuptools') +_commit='a878d2a4ba917d191e2fa0460e73f2bb44e3346e' +source=("$pkgname::git+https://github.com/dbcli/pgcli.git#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + + git describe --tags | sed 's/^v//' +} + +build() { + cd "$pkgname" + + python setup.py build +} + +check() { + cd "$pkgname" + +} + +package() { + cd "$pkgname" + + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt +}
