diff options
author | NebulaNeko | 2019-09-01 11:06:08 +0800 |
---|---|---|
committer | NebulaNeko | 2019-09-01 11:06:08 +0800 |
commit | 3b1feffdccc46f05ccd252cfbe6f30568de2d579 (patch) | |
tree | 5dd61370cef2838fb8b7d0cda24c4161540b9f66 | |
download | aur-3b1feffdccc46f05ccd252cfbe6f30568de2d579.tar.gz |
init commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..50c52be48fd7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-cqhttp-git + pkgdesc = A Python SDK for CoolQ HTTP API plugin. + pkgver = r30.1869819 + pkgrel = 1 + url = https://github.com/richardchien/python-cqhttp + arch = any + groups = eqs + license = MIT + makedepends = git + depends = python>=3.5 + depends = python-flask + depends = python-requests + depends = coolq-cqhttp-api-bin + provides = python-cqhttp + conflicts = python-cqhttp + source = python-cqhttp::git+https://github.com/richardchien/python-cqhttp.git + md5sums = SKIP + +pkgname = python-cqhttp-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..065dfeed75a1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: NebulaNeko <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-bin') +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 +} |