summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7e63e22f00e9f110bfda4de904f9faada72b2b9 (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
# Contributor: Eriner <M@tthamilton.com>

pkgname=python-prawoauth2
pkgver=0.3
pkgrel=2
pkgdesc='prawoauth2 is a helper library which makes writing Reddit bots/apps using OAuth2 super easy and simple.'
arch=(any)
url='https://github.com/avinassh/prawoauth2'
license=('MIT')
depends=('python-praw' 'python-tornado')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://pypi.python.org/packages/source/p/prawoauth2/prawoauth2-${pkgver}.tar.gz")
md5sums=('d93d3a1ef16ac90e36f806123f38f0ff')

build() {
  cd "prawoauth2-${pkgver}"
  python setup.py build
}

package() {
  cd "prawoauth2-${pkgver}"
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}