summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f4c0bbfcebdf1923b57d3796d1f8f12c4e53de36 (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: Sara Jakša <sarajaksa@gmail.com>
# Based on willemw <willemw12@gmail.com> build for python-code-chat

_pkgname=python-stackapi
pkgname=$_pkgname-git
pkgver=0.1.8
pkgrel=1
pkgdesc="A python wrapper for the StackOverflow and StackExchange API"
arch=('any')
url="https://github.com/AWegnerGitHub/stackapi"
license=('MIT')
depends=('python-docutils' 'python-requests')
makedepends=('git' 'python-setuptools')
provides=($_pkgname)
conflicts=($_pkgname)
source=($pkgname::git://github.com/AWegnerGitHub/stackapi.git)
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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