summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d52a9b685087df603ad5579fce0cef966a8fc78 (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
31
32
33
34
# Maintainer: seiuneko <chfsefefgesfen foxmail>

pkgname=python-cqhttp-git
pkgver=r30.1869819
pkgrel=1
pkgdesc='A Python SDK for CoolQ HTTP API plugin.'
arch=('any')
url='https://github.com/richardchien/python-cqhttp'
license=('MIT')
groups=('eqs')
depends=('python>=3.5' 'python-flask' 'python-requests' 'coolq-cqhttp-api')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}"::"git+${url}.git")
md5sums=('SKIP')

pkgver() {
	cd "${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${pkgname%-git}"

	python setup.py clean --all
	python setup.py build
}

package() {
	cd "${pkgname%-git}"

	python setup.py install --root "$pkgdir" --optimize=1 --skip-build
}