blob: cbcba57acc646e2b1befef463b391f1359286aeb (
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
|
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=python-py-stackexchange-git
pkgver=1.247.18243b1
pkgrel=1
pkgdesc="A Python binding for the StackExchange API"
arch=('any')
url="https://github.com/lucjon/Py-StackExchange"
license=('BSD')
makedepends=("python-setuptools" 'python-six')
provides=('python-py-stackexchange' 'python-stackexchange')
conflicts=("python-py-stackexchange" "${pkgname}")
source=("python-py-stackexchange::git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/python-py-stackexchange"
printf "1.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/python-py-stackexchange"
python setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|