summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ee7d718bbc860affd4d41af89de822abafa144a (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
28
29
30
# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Thomas WeiƟschuh <thomas_weissschuh lavabit com>

pkgname=python-httpie-oauth
pkgdesc="OAuth plugin for httpie"
license=('BSD')
url="https://github.com/jkbrzt/httpie-oauth"
pkgver=5.6cf6ed4
pkgrel=2

source=("$pkgname::git://github.com/jkbrzt/httpie-oauth.git")
md5sums=('SKIP')
depends=('python-oauthlib' 'python-requests-oauthlib')
makedepends=('python-distribute' 'git')
arch=('any')

pkgver() {
    cd "$srcdir/$pkgname"
    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
    cd "$srcdir/$pkgname"
    python3 setup.py build
}

package() {
    cd "$srcdir/$pkgname"
    python3 setup.py install --root="$pkgdir" --optimize=1
}