summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88b3cdceb35cb832ebb6e92dd15b09c034167fc9 (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
35
36
37
38
39
40
# Maintainer: Mia Furze <46620osu@gmail.com>

pkgname='vodbot-git'
pkgver=1.1.10.r0.g376e311
pkgrel=2
pkgdesc='A command line interface VOD and Clip manager for Twitch.'
arch=('x86_64' 'armv7h' 'aarch64')
url="https://github.com/FriendTeamInc/VodBot"
provides=('vodbot')
conflicts=('vodbot')
depends=('ffmpeg'
         'python-argcomplete'
         'python-dataclasses-json' # AUR
         'python-requests'
         'python-m3u8' # AUR
         'python-google-api-python-client'
         'python-google-auth-oauthlib'
         'python-google-auth-httplib2'
         'python-pillow'
         'python-discord-webhook' # AUR
)
license=('MIT')
source=("$pkgname::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

build() {
    cd "$pkgname"
    python setup.py build
}

package() {
    cd "$pkgname"
    python setup.py install --root="${pkgdir}/"
    install -D -m644 LICENSE.md "$pkgdir/usr/share/licenses/${pkgname%????}/LICENSE"
}