diff options
author | gkmcd | 2018-10-05 20:57:20 +1000 |
---|---|---|
committer | gkmcd | 2018-10-05 20:57:20 +1000 |
commit | 97f8487e28f0b3be27f73394f85efea2247e7c18 (patch) | |
tree | 1d0301d14f880e2057009466fe53fc2201cb69d7 /PKGBUILD | |
download | aur-python-nubia-git.tar.gz |
initial PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4171cc34df84 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: gkmcd <g at dramati dot cc> + +# Keywords: cli shell interactive framework + +pkgname="python-nubia-git" +_name="python-nubia" +pkgver="r6.5a659f1" +pkgrel=1 +pkgdesc="A framework for building beautiful shells." +arch=('any') +url="https://github.com/facebookincubator/python-nubia" +license=('BSD') +depends=('python' 'python-termcolor' 'python-levenshtein' 'python-pyparsing' 'python-prettytable' 'python-prompt_toolkit' 'python-pygments') +makedepends=('git' 'python-setuptools' 'python-pipenv' 'python-wheel') +checkdepends=('python-nose') +optdepends=() +provides=("python-nubia") +conflicts=("python-nubia") +source=('git+https://github.com/facebookincubator/python-nubia.git') +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_name}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${_name}" + python setup.py build +} + +check() { + cd "${srcdir}/${_name}" + nosetests +} + +package() { + cd "${srcdir}/${_name}" + python setup.py install --root="${pkgdir}" --skip-build + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |