diff options
author | Wouter de Vries | 2018-03-16 14:21:00 -0700 |
---|---|---|
committer | Wouter de Vries | 2018-03-16 14:21:00 -0700 |
commit | d6fbd84ac0e9b2188defd06f76eaa5605e3e81d8 (patch) | |
tree | c71b9b0360d86fe7cc3b91782573535c2f11b0fe | |
download | aur-d6fbd84ac0e9b2188defd06f76eaa5605e3e81d8.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f36bcb3eec4b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-clickhouse-cli-git + pkgdesc = Third-party client for the Clickhouse DBMS server + pkgver = r107.9be5d7a + pkgrel = 1 + url = https://github.com/hatarist/clickhouse-cli + arch = any + license = MIT + depends = python + depends = python-sqlparse + depends = python-pygments + depends = python-prompt_toolkit + depends = python-click + provides = clickhouse-cli + options = !emptydirs + source = clickhouse-cli::git+https://github.com/hatarist/clickhouse-cli.git + md5sums = SKIP + +pkgname = python-clickhouse-cli-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ae8fa7d94736 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Wouter de Vries <wouter@wbdv.nl> +pkgname=python-clickhouse-cli-git +_pkgname=clickhouse-cli +pkgver=r107.9be5d7a +pkgrel=1 +pkgdesc="Third-party client for the Clickhouse DBMS server" +arch=(any) +url="https://github.com/hatarist/clickhouse-cli" +license=('MIT') +depends=('python' 'python-sqlparse' 'python-pygments' 'python-prompt_toolkit' 'python-click') +provides=('clickhouse-cli') +options=(!emptydirs) +source=('clickhouse-cli::git+https://github.com/hatarist/clickhouse-cli.git') +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$_pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: |