summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7308e75e31405c33045ad3f0c8bdf383cb3a9e2 (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: NebulaNeko <chfsefefgesfen foxmail>

pkgname=python-efb-qq-slave-git
pkgver=r95.ae62beb
pkgrel=1
pkgdesc='EFB QQ Slave, a channel for EH Forwarder Bot.'
arch=('any')
url='https://github.com/milkice233/efb-qq-slave'
license=('GPL3')
groups=('eqs')
depends=('python>=3.6' 'python-ehforwarderbot' 'python-telegram-bot' 'python-requests' 'python-magic' 'python-pyaml' 'python-pillow' 'python-cqhttp' 'ffmpeg')
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
}