diff options
author | Ben Wolsieffer | 2016-12-12 15:52:43 -0500 |
---|---|---|
committer | Ben Wolsieffer | 2016-12-12 20:02:23 -0500 |
commit | 2790b247e1fb794d2997dcde130e418e95559916 (patch) | |
tree | 0af22a3219af7bceb5e04ebc0b48bd6b64d4d225 | |
download | aur-2790b247e1fb794d2997dcde130e418e95559916.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..916f89412e6d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Tue Dec 13 01:01:58 UTC 2016 +pkgbase = python-sphinx-argparse + pkgdesc = Sphinx extension that automatically documents argparse commands and options. + pkgver = 0.1.15 + pkgrel = 1 + url = https://github.com/ribozz/sphinx-argparse + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + source = sphinx-argparse::git+https://github.com/ribozz/sphinx-argparse.git#tag=0.1.15 + sha256sums = SKIP + +pkgname = python-sphinx-argparse + depends = python-sphinx + +pkgname = python2-sphinx-argparse + depends = python2-sphinx + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..35f345b641b4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Ben Wolsieffer <benwolsieffer@gmail.com> +_py_pkgname=sphinx-argparse +_github_url=https://github.com/ribozz/sphinx-argparse +pkgbase=python-${_py_pkgname} +pkgname=(python-${_py_pkgname} python2-${_py_pkgname}) +pkgver=0.1.15 +pkgrel=1 +pkgdesc="Sphinx extension that automatically documents argparse commands and options." +arch=('any') +url="${_github_url}" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools') +source=(${_py_pkgname}::git+${_github_url}.git#tag=$pkgver) +sha256sums=('SKIP') + +prepare() { + cp -a "${srcdir}/${_py_pkgname}" "${srcdir}/python2-${_py_pkgname}" +} + +build() { + cd "${srcdir}/${_py_pkgname}" + python setup.py build + cd "${srcdir}/python2-${_py_pkgname}" + python2 setup.py build +} + +# Automatically create package functions using Bash magic +source /dev/stdin << EOF +package_python-${_py_pkgname}() { + depends=('python-sphinx') + + cd "\${srcdir}/${_py_pkgname}" + + python setup.py install --skip-build --root="\${pkgdir}" --optimize=1 + + install -Dm644 LICENSE "\${pkgdir}/usr/share/licenses/\${pkgname}/LICENSE" +} + +package_python2-${_py_pkgname}() { + depends=('python2-sphinx') + + cd "\${srcdir}/python2-${_py_pkgname}" + + python2 setup.py install --skip-build --root="\${pkgdir}" --optimize=1 + + install -Dm644 LICENSE "\${pkgdir}/usr/share/licenses/\${pkgname}/LICENSE" +} +EOF + +# vim:set ts=4 sw=4 et: |