summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a7e0e34c82f00adf65a8ddff096fb2b258d5224 (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
# Maintainer      : Yuu $(echo \<yuu-tutamail+com\>|sed s/\+/./g\;s/\-/@/)

_pkgname=pylivestream
pkgname=$_pkgname-git
pkgver=1.11.1.r0.g6b0d23e
pkgrel=1
pkgdesc="Python FFmpeg-based live streaming to YouTube, Facebook, Periscope, Twitch, etc"
arch=('any')
url=https://github.com/scivision/$_pkgname
license=('AGPL3')
depends=('ffmpeg>=3.0' 'python>=3.6' 'python-setuptools')
makedepends=('git' 'python-setuptools')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
md5sums=('SKIP')

# Git, un-annotated tags available.
# Use the most recent un-annotated tag reachable from the last commit.
pkgver() {
    cd "$srcdir/$_pkgname"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "$srcdir/$_pkgname"
    install -Dm644 README.md -t "$pkgdir/usr/share/doc/$_pkgname/"
    python setup.py install --root="$pkgdir" --optimize=1
}