summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db5c99d6bdc7be21d459b7b69495ef290af1eb92 (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: Pete Alexandrou <pete@ozmartians.com>
pkgname=tvlinker
pkgver=4.5.0
_branch=master
pkgrel=5
pkgdesc="TV show link scraper + downloader for Scene-RLS.com w/ debrid link unrestricting and support for a number of download managers across all platforms + ShadowSocks & v2ray local proxies."
arch=('any')
license=('GPL3')
url="https://tvlinker.ozmartians.com"
source=(https://github.com/ozmartian/${pkgname}/archive/${_branch}.tar.gz)
depends=('python-beautifulsoup4' 'python-js2py' 'python-lxml' 'python-pyjsparser' 'python-pyqt5' 'python-pytz' 'python-requests' 'python-setuptools' 'python-tzlocal')
makedepends=('python-setuptools')
optdepends=('aria2' 'persepolis' 'pyload' 'python-pysocks')
md5sums=('SKIP')

prepare() {
    cd "${srcdir}/${pkgname}-${_branch}"
    sed -i "s/pypi/arch/" "${pkgname}/__init__.py"
}

build() {
    cd "${srcdir}/${pkgname}-${_branch}"
    python3 setup.py build
}

package() {
    cd "${srcdir}/${pkgname}-${_branch}"
    python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}