blob: 9d4c1d62edc421782384a2f93cc1cc26a8d32b7c (
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
|
# Maintainer: Caesim404 <caesim404 at gmail dot com>
# Contributor: Maxim Andersson <thesilentboatman@gmail.com>
_pkgbase=svtplay-dl
pkgname="${_pkgbase}-git"
pkgver=4.89.r0.g18b5b4f5
pkgrel=1
pkgdesc="Media downloader for play sites (e.g. SVT Play)"
arch=('any')
url="https://github.com/spaam/svtplay-dl"
license=('MIT')
depends=('python-cryptography' 'python-requests' 'ffmpeg' 'python-yaml')
optdepends=('python-pysocks: proxy support')
makedepends=('git' 'python-setuptools' 'perl')
provides=("$_pkgbase")
conflicts=("$_pkgbase")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgbase}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "${srcdir}/${_pkgbase}"
python setup.py install --root="$pkgdir" --optimize=1
pod2man --utf8 --center "${_pkgbase} manual" --release "${_pkgbase} ${pkgver}" "${_pkgbase}.pod" "${_pkgbase}.1"
install -Dm644 "${_pkgbase}.1" "${pkgdir}/usr/share/man/man1/${_pkgbase}.1"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgbase}/LICENSE"
}
|