Skip to content

Instantly share code, notes, and snippets.

@acidrain42 acidrain42/PKGBUILD-mycli-1.12.0 Secret
Last active Aug 7, 2017

Embed
What would you like to do?
# 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
You can’t perform that action at this time.