summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-oauth/PKGBUILD
blob: 1404fecb6fc5068d86aed131ba4db4dde4449df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Snowknight (hopkinsth@gmail.com)
pkgname=python-oauth
pkgver=1.0.1
pkgrel=6
pkgdesc="An open protocol to allow API authentication in a simple and standard method from desktop and web applications."
arch=('any')
url="http://code.google.com/p/oauth/"
license=('MIT')
depends=('python2')
#makedepends=('python2-distribute')
makedepends=('setuptools')
source=(http://pypi.python.org/packages/source/o/oauth/oauth-${pkgver}.tar.gz)
md5sums=('30ed3cc8c11d7841a89feab437aabf81')
sha1sums=('b2d7609e4852b33d0d33f0bc6ae5cab8fadca014')

build() {
  cd ${srcdir}/oauth-${pkgver}

  python2 setup.py build || return 1
}
package() {
  cd ${srcdir}/oauth-${pkgver}
  python2 setup.py install --root=${pkgdir} || return 1

  install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}