From 753456470214c6134920c2f38d03ab4775d96fce Mon Sep 17 00:00:00 2001 From: Daniel Santana Date: Sat, 10 Nov 2018 13:15:22 -0200 Subject: [PATCH] New package: python-guessit-3.0.3 --- srcpkgs/python-guessit/template | 34 +++++++++++++++++++++++++++++++++ srcpkgs/python3-guessit | 1 + 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/python-guessit/template create mode 120000 srcpkgs/python3-guessit diff --git a/srcpkgs/python-guessit/template b/srcpkgs/python-guessit/template new file mode 100644 index 00000000000..a496a93226d --- /dev/null +++ b/srcpkgs/python-guessit/template @@ -0,0 +1,34 @@ +# Template file for 'python-guessit' +pkgname=python-guessit +version=3.0.3 +revision=1 +noarch=yes +wrksrc="guessit-${version}" +build_style=python-module +pycompile_module="guessit" +hostmakedepends="python-setuptools python3-setuptools" +depends="python python-rebulk python-babelfish python-dateutil" +short_desc="Library for guessing information from video filenames (Python2)" +maintainer="Daniel Santana " +license="LGPL-3.0-only" +homepage="https://guessit.readthedocs.io/en/latest/" +distfiles="${PYPI_SITE}/g/guessit/guessit-${version}.tar.gz" +checksum=590cfaac6adbc65a0297f7b2a44c2accf2cc660eeed6283b43cbad30e65806e0 +alternatives="guessit:guessit:/usr/bin/guessit2" + +post_install() { + vlicense LICENSE +} + +python3-guessit_package() { + noarch=yes + pycompile_module="guessit" + depends="python3 python3-rebulk python3-babelfish python3-dateutil" + short_desc="${short_desc/Python2/Python3}" + alternatives="guessit:guessit:/usr/bin/guessit3" + pkg_install() { + vmove usr/bin/guessit3 + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-guessit b/srcpkgs/python3-guessit new file mode 120000 index 00000000000..ff4d6773332 --- /dev/null +++ b/srcpkgs/python3-guessit @@ -0,0 +1 @@ +python-guessit \ No newline at end of file