summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b38b6a3e41e8ac3791d3a0e320529d4cb9ebd3b (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
# Maintainer: Dictator Mei <dctxmei@gmail.com>
pkgname=qqbot
pkgver=2.3.10
pkgrel=1
pkgdesc="A conversation robot base on Tencent's SmartQQ"
arch=('any')
url="https://github.com/pandolia/qqbot"
license=('MIT')
depends=("python" "python-apscheduler" "python-certifi" "python-requests")
optdepends=("gvfs: Automatically pop up QR code image"
            "python-pillow: For cmdQrcode"
            "python-wcwidth: For cmdQrcode"
            "shotwell: Automatically pop up QR code image")
source=("https://github.com/pandolia/qqbot/archive/v$pkgver.tar.gz"
        "qqbot.service")
sha512sums=("c72f8a1c153c97a50adfaeb7704cbdacebcdd01b4a603e1a34ab571447cf3a2747c4da6480f7ce070eccd2b7fe5e3306924a111be1f680947fab245ee266a813"
            "88d5333217d868b227401cc4a954d547139272fef753384a5d885a21ca640bcd9529b2e98a02a7fb9ebd3b2a57bc634aefb3c3dedc09e5d9378ad827ffa629af")

build() {
    cd "$srcdir"/qqbot-$pkgver
    python setup.py build
}

package() {
    cd qqbot-$pkgver
    python setup.py install --root="$pkgdir"
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}