New package: python-pysrt-1.1.1

This commit is contained in:
Daniel Santana 2018-11-10 13:15:38 -02:00 committed by maxice8
parent 7534564702
commit 36da7ea2f9
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Template file for 'python-pysrt'
pkgname=python-pysrt
version=1.1.1
revision=1
noarch=yes
wrksrc="pysrt-${version}"
build_style=python-module
pycompile_module="pysrt"
hostmakedepends="python-setuptools python3-setuptools"
depends="python python-chardet"
short_desc="SubRip (.srt) subtitle parser and writer (Python2)"
maintainer="Daniel Santana <daniel@santana.tech>"
license="GPL-3.0-only"
homepage="https://github.com/byroot/pysrt"
distfiles="${PYPI_SITE}/p/pysrt/pysrt-${version}.tar.gz"
checksum=fb4c10424549fc5a32d19cd5091f00316b875461fcd79a7809bb55056974d0aa
alternatives="srt:srt:/usr/bin/srt2"
python3-pysrt_package() {
noarch=yes
pycompile_module="pysrt"
depends="python3 python3-chardet"
short_desc="${short_desc/Python2/Python3}"
alternatives="srt:srt:/usr/bin/srt3"
pkg_install() {
vmove usr/bin/srt3
vmove usr/lib/python3*
}
}

1
srcpkgs/python3-pysrt Symbolic link
View file

@ -0,0 +1 @@
python-pysrt