diff options
author | clintval | 2018-05-12 16:23:13 -0400 |
---|---|---|
committer | clintval | 2018-05-12 16:23:13 -0400 |
commit | 80887902f960286907591361255a147db0afad3f (patch) | |
tree | 971c2bb6a824a80d0b93c8786fa62c3f4dc777c9 | |
download | aur-80887902f960286907591361255a147db0afad3f.tar.gz |
First commit with PKGBUILD and .SRCINFO
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..99d7b83faa89 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = python-custom_inherit + pkgdesc = A Python package that provides tools for inheriting docstrings in customizable ways + pkgver = 2.2.0 + pkgrel = 1 + url = https://github.com/meowklaski/custom_inherit + arch = any + license = MIT + makedepends = python + makedepends = python-setuptools + makedepends = python2 + makedepends = python2-setuptools + options = !emptydirs + source = python-custom_inherit-2.2.0.tar.gz::https://pypi.io/packages/source/c/custom_inherit/custom_inherit-2.2.0.tar.gz + source = https://raw.githubusercontent.com/meowklaski/custom_inherit/13bce675e246d84e21bcd7658e0a4fbf25db4adc/License.md + sha256sums = 3892ec53aaffae98d757867c3d1dd5f02200db0e1f888ab601223d72262996f8 + sha256sums = 3ec37cf6e3bd177bf8661a0cd5f5d59b9955700a70bfd5ff12bd30d6d12ca95e + +pkgname = python-custom_inherit + depends = python + +pkgname = python2-custom_inherit + depends = python2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e49130891ea6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Clint Valentine <valentine.clint@gmail.com> + +_name=custom_inherit +pkgbase='python-custom_inherit' +pkgname=('python-custom_inherit' 'python2-custom_inherit') +pkgver=2.2.0 +pkgrel=1 +pkgdesc="A Python package that provides tools for inheriting docstrings in customizable ways" +arch=('any') +url="https://github.com/meowklaski/custom_inherit" +license=('MIT') +makedepends=( + 'python' 'python-setuptools' + 'python2' 'python2-setuptools') +options=(!emptydirs) +source=( + "${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz + https://raw.githubusercontent.com/meowklaski/custom_inherit/13bce675e246d84e21bcd7658e0a4fbf25db4adc/License.md +) +sha256sums=( + '3892ec53aaffae98d757867c3d1dd5f02200db0e1f888ab601223d72262996f8' + '3ec37cf6e3bd177bf8661a0cd5f5d59b9955700a70bfd5ff12bd30d6d12ca95e' +) + +prepare() { + cp -a custom_inherit-"${pkgver}"{,-py2} +} + +package() { + cd "${srcdir}"/custom_inherit-"${pkgver}" + python setup.py install --root="${pkgdir}/" --optimize=1 +} + +build(){ + cd "${srcdir}"/custom_inherit-"${pkgver}" + python setup.py build + + cd "${srcdir}"/custom_inherit-"${pkgver}"-py2 + python2 setup.py build +} + +package_python2-custom_inherit() { + depends=('python2') + + install -Dm644 License.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/License.md + cd custom_inherit-"${pkgver}"-py2 + python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build +} + +package_python-custom_inherit() { + depends=('python') + + install -Dm644 License.md "${pkgdir}"/usr/share/licenses/"${pkgname}"/License.md + cd custom_inherit-"${pkgver}" + python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build +} |