diff options
author | peeweep | 2019-10-01 11:37:50 +0800 |
---|---|---|
committer | peeweep | 2019-10-01 11:37:50 +0800 |
commit | 948efd032d0ac65546facab0114e1572ca18ab5d (patch) | |
tree | 819baad4ebdf229a98abc50a3e9687fb223106c0 | |
download | aur-948efd032d0ac65546facab0114e1572ca18ab5d.tar.gz |
Init
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | LICENSE | 21 | ||||
-rw-r--r-- | PKGBUILD | 57 |
4 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..25ab1f8d7e2b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = python-aigpy + pkgdesc = Python Common Lib + pkgver = 2019.9.20.2 + pkgrel = 1 + url = https://pypi.org/project/aigpy + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + source = https://files.pythonhosted.org/packages/06/8d/46ca89b991b15bfc28c9f44ca620be6fc3fe50c627a0f4316385e1b81474/aigpy-2019.9.20.2.tar.gz + sha256sums = ad7f4e1a8fad7ca7f0efdcc79d7ed256b38521d9a07ca4c784e4143909036857 + +pkgname = python-aigpy + depends = python + depends = python-requests + depends = python-colorama + depends = python-mutagen + +pkgname = python2-aigpy + depends = python2 + depends = python2-requests + depends = python2-colorama + depends = python2-mutagen + depends = python2-futures + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0fe2ffbd3674 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.log +pkg/ +src/ +*.pkg.tar.xz +*.tar.gz diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000000..ab602974d200 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3e9498096761 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: peeweep <peeweep at 0x0 dot ee> + +pkgname=('python-aigpy' 'python2-aigpy') +_pkgname=aigpy +pkgver=2019.9.20.2 +pkgrel=1 +pkgdesc="Python Common Lib" +arch=('any') +url="https://pypi.org/project/aigpy" +license=('MIT') +makedepends=( + 'python-setuptools' + 'python2-setuptools' +) +source=("https://files.pythonhosted.org/packages/06/8d/46ca89b991b15bfc28c9f44ca620be6fc3fe50c627a0f4316385e1b81474/${_pkgname}-${pkgver}.tar.gz" + "LICENSE") +sha256sums=('ad7f4e1a8fad7ca7f0efdcc79d7ed256b38521d9a07ca4c784e4143909036857' + '83e4dd21429a91fb7cea67a476032a9641425e5355df2e0f589a738b6ec9fd2c') + +prepare() { + cp -r "${srcdir}/${_pkgname}-${pkgver}" "${srcdir}/${_pkgname}-${pkgver}-2" +} + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python setup.py build + + cd "${srcdir}/${_pkgname}-${pkgver}-2" + python2 setup.py build +} + +package_python-aigpy() { + depends=( + 'python' + 'python-requests' + 'python-colorama' + 'python-mutagen' + ) + cd "${srcdir}/${_pkgname}-${pkgver}" + python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-aigpy() { + depends=( + 'python2' + 'python2-requests' + 'python2-colorama' + 'python2-mutagen' + 'python2-futures' + ) + cd "${srcdir}/${_pkgname}-${pkgver}-2" + python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set ts=2 sw=2 et: |