New package: python-subliminal-2.0.5
This commit is contained in:
parent
a58480542f
commit
6017bb34f4
2 changed files with 46 additions and 0 deletions
45
srcpkgs/python-subliminal/template
Normal file
45
srcpkgs/python-subliminal/template
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Template file for 'python-subliminal'
|
||||
pkgname=python-subliminal
|
||||
version=2.0.5
|
||||
revision=1
|
||||
noarch=yes
|
||||
wrksrc="subliminal-${version}"
|
||||
build_style=python-module
|
||||
pycompile_module="subliminal"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python python-guessit python-babelfish python-enzyme
|
||||
python-BeautifulSoup4 python-requests python-click python-dogpile.cache
|
||||
python-stevedore python-chardet python-pysrt python-six python-appdirs
|
||||
python-rarfile python-pytz"
|
||||
short_desc="Subtitles, faster than your thoughts (Python2)"
|
||||
maintainer="Daniel Santana <daniel@santana.tech>"
|
||||
license="MIT"
|
||||
homepage="http://subliminal.readthedocs.org"
|
||||
distfiles="${PYPI_SITE}/s/subliminal/subliminal-${version}.tar.gz"
|
||||
checksum=147aa54f54de62d6fcafa213bb9ea89319600c133dab1a5532ff7126352bfbb7
|
||||
alternatives="subliminal:subliminal:/usr/bin/subliminal2"
|
||||
|
||||
post_extract() {
|
||||
# Remove extraneous files, they are not used and they doen't work on python3
|
||||
rm -r subliminal/subtitles
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
python3-subliminal_package() {
|
||||
noarch=yes
|
||||
pycompile_module="subliminal"
|
||||
depends="python3 python3-guessit python3-babelfish python3-enzyme
|
||||
python3-BeautifulSoup4 python3-requests python3-click python3-dogpile.cache
|
||||
python3-stevedore python3-chardet python3-pysrt python3-six python3-appdirs
|
||||
python3-rarfile python3-pytz"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
alternatives="subliminal:subliminal:/usr/bin/subliminal3"
|
||||
pkg_install() {
|
||||
vmove usr/bin/subliminal3
|
||||
vmove usr/lib/python3*
|
||||
vlicense LICENSE
|
||||
}
|
||||
}
|
1
srcpkgs/python3-subliminal
Symbolic link
1
srcpkgs/python3-subliminal
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-subliminal
|
Loading…
Add table
Reference in a new issue