archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-ratelim / trunk / PKGBUILD
blob378d9783396ff953c7a832a1313d9f55e9a671c4
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-ratelim
4 pkgver=0.1.6
5 pkgrel=8
6 pkgdesc="Makes it easy to respect rate limits"
7 url="https://github.com/themiurgo/ratelim"
8 license=('MIT')
9 arch=('any')
10 depends=('python-decorator')
11 makedepends=('python-setuptools')
12 source=("https://pypi.io/packages/source/r/ratelim/ratelim-$pkgver.tar.gz"
13         ratelim-LICENSE::https://raw.githubusercontent.com/themiurgo/ratelim/master/LICENSE)
14 sha512sums=('4d074d47278c591182d56d398c827da86c06428a1f994bd443f04903cca2bfe6affdfdd0daaca6115066903607e0216ac0a5f29240fdfe1c1faf5873a55122b0'
15             'ffe65c1aa0d76ed652c0536ea72a518ad449c15270eb654c01d037f3cf263b154293aca66edcb535f499ebb71891833836a90095c913e35498e24888bea2cb2b')
17 build() {
18   cd ratelim-$pkgver
19   python setup.py build
22 package() {
23   cd ratelim-$pkgver
24   python setup.py install --root="$pkgdir" --optimize=1
25   install -Dm644 ../ratelim-LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE