diff options
author | back-to | 2018-08-26 12:39:41 +0200 |
---|---|---|
committer | back-to | 2018-08-26 12:39:41 +0200 |
commit | b2c31bd7b2b63e3a13ef1d1c723067e1a54aff5e (patch) | |
tree | b9ad21c4e104408d052458879c4d799ed8fd2062 | |
download | aur-livecli.tar.gz |
Initial commit - 4.0.5
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f5a97bcecfd3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = livecli + pkgdesc = CLI that pipes videos from online streaming services to a video player + pkgver = 4.0.5 + pkgrel = 1 + url = https://livecli.github.io/ + arch = any + license = BSD + checkdepends = python-freezegun + checkdepends = python-mock + checkdepends = python-pytest + checkdepends = python-requests-mock + makedepends = python-setuptools + depends = python-isodate + depends = python-pycountry + depends = python-requests + optdepends = ffmpeg: Required to play streams that are made up of separate audio and video streams + optdepends = python-pycryptodome: Required to play some encrypted streams + optdepends = python-pysocks: Required for socks proxies + optdepends = python-websocket-client: Required for some plugins + optdepends = rtmpdump: Required to play rtmp streams + source = https://github.com/livecli/livecli/releases/download/4.0.5/livecli-4.0.5.tar.gz + sha256sums = f8a26dad0f1d33ea7b2ff8110dba26d6ff8e93f983ff120331b47c2eeddd5042 + +pkgname = livecli + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9eb008fbe00a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: back-to <backto at protonmail dot ch> + +pkgname=livecli +pkgver=4.0.5 +pkgrel=1 +pkgdesc="CLI that pipes videos from online streaming services to a video player" +arch=("any") +url="https://livecli.github.io/" +license=("BSD") +depends=("python-"{isodate,pycountry,requests}) +optdepends=( + "ffmpeg: Required to play streams that are made up of separate audio and video streams" + "python-pycryptodome: Required to play some encrypted streams" + "python-pysocks: Required for socks proxies" + "python-websocket-client: Required for some plugins" + "rtmpdump: Required to play rtmp streams" +) +makedepends=("python-setuptools") +checkdepends=("python-"{freezegun,mock,pytest,requests-mock}) +sha256sums=("f8a26dad0f1d33ea7b2ff8110dba26d6ff8e93f983ff120331b47c2eeddd5042") +source=("https://github.com/${pkgname}/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz") + +build() { + cd "$pkgname-$pkgver" + export LIVECLI_USE_PYCOUNTRY="true" + python setup.py build +} + +check() { + cd "$pkgname-$pkgver" + python setup.py test +} + +package() { + cd "$pkgname-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |