summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c39e3a8f9209277c0c012354e3fa16b50c2c3531 (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-efb-qq-slave-git
pkgver=2.0.0b3.r35.g47418ed
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}"
  git describe --long --tags | sed 's/^v\.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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
}