diff options
author | Aaron Abbott | 2015-08-05 11:34:04 -0400 |
---|---|---|
committer | Aaron Abbott | 2015-08-05 11:34:04 -0400 |
commit | e0f1f5cd8350084b17da6214314864588506c746 (patch) | |
tree | c092c09fd71ec63ad30d9be2f35035a352441075 /PKGBUILD | |
download | aur-e0f1f5cd8350084b17da6214314864588506c746.tar.gz |
Initial commit. Working version 1.2.0, rel 1
namcap complains about the dependencies being unused. However, I pulled
them from the setup.py script's install_requires list.
I didn't name this package python-mycli because it is probably not
being used as a module, but as an executable.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ddf886407bc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Aaron Abbott <aabmass at gmail dot com> +pkgname=mycli +pkgver=1.2.0 +pkgrel=1 +pkgdesc='CLI for MySQL Database. With auto-completion and syntax highlighting.' +arch=('any') +url="https://pypi.python.org/pypi/${pkgname}" +license=('BSD') +groups=() +# these dependencies are pulled from this package's setup.py +depends=('python' 'python-click' 'python-pygments' 'python-prompt-toolkit' 'python-pymysql' 'python-sqlparse' 'python-configobj') +makedepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=(!emptydirs) + +source=("https://pypi.python.org/packages/source/m/${pkgname}/${pkgname}-${pkgver}.tar.gz") +md5sums=('1035b0ca37ec01bd6b470e5e146b05db') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + python setup.py build +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + python setup.py install --root="${pkgdir}" --optimize=1 +} |