summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17bfb659205f945daeb96ab275b2f83e9e65ad80 (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
# Maintainer: John Jenkins <twodopeshaggy@gmail.com>

pkgname=python-tweepy-git
pkgver=0.1067.80015db
pkgrel=1
pkgdesc="A Python library for accessing the entire Twitter API"
arch=('any')
url="https://github.com/tweepy/tweepy"
license=('MIT')
conflicts=('python-tweepy')
provides=('python-tweepy')
depends=('python-pysocks' 'python-requests' 'python-requests-oauthlib' 'python-six')
makedepends=(
  'python-setuptools' 'python-pip' 'git'
  'python-requests' 'python-requests-oauthlib' 'python-six'
)
source=("${pkgname%}::git+https://github.com/tweepy/tweepy")
sha256sums=('SKIP')

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

package() { 
  cd "$srcdir/$pkgname"
  python setup.py install -O1 --root="${pkgdir}" --prefix=/usr
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}