Skip to content

Instantly share code, notes, and snippets.

@acidrain42
Last active August 7, 2017 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acidrain42/45be445cec1e9bdd3ef97315fcf4e7c2 to your computer and use it in GitHub Desktop.
Save acidrain42/45be445cec1e9bdd3ef97315fcf4e7c2 to your computer and use it in GitHub Desktop.
# Maintainer: Aaron Abbott <aabmass at gmail dot com>
# Contributor: acidrain42 <acidrain1@gmail.com>
pkgname=mycli
pkgver=1.12.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' 'python-cryptography' 'python-cli_helpers')
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
# source is broken on pypi for some reason since 1.7.0... hard code instead
# source=("https://pypi.python.org/packages/source/m/${pkgname}/${pkgname}-${pkgver}.tar.gz")
source=("https://pypi.python.org/packages/58/94/fe3e1a660138b1eaf9db38079261728c424bad32fc975b35749951d8cdf2/mycli-1.12.0.tar.gz")
md5sums=('0ec51231475abd7b7e6dfbae46566373')
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment