python2/3 guessit at version 2.0.4 for flexget

This commit is contained in:
Cedric Girard 2017-12-12 16:20:00 +01:00
parent 7f476bae77
commit 5edada25bd
Signed by: X-dark
GPG key ID: 37995E758B76710B
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,26 @@
pkgbase = python-guessit-204
pkgdesc = a library for guessing information from video filenames
pkgver = 2.0.4
pkgrel = 1
url = http://pypi.python.org/pypi/guessit
arch = any
license = GPL3
source = https://pypi.io/packages/source/g/guessit/guessit-2.0.4.tar.gz
md5sums = 2fc60912f7a12ca9573e265de23556d6
pkgname = python-guessit-204
depends = python
depends = python-rebulk>=0.7.0
depends = python-babelfish>=0.5.5
depends = python-dateutil
provides = python-guessit=2.0.4
conflicts = python-guessit=2.0.4
pkgname = python2-guessit-204
depends = python2
depends = python2-rebulk>=0.7.0
depends = python2-babelfish>=0.5.5
depends = python2-dateutil
provides = python2-guessit=2.0.4
conflicts = python2-guessit=2.0.4

View file

@ -0,0 +1,32 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
_pythonmod=guessit
pkgname=('python-guessit-204' 'python2-guessit-204')
pkgbase=python-guessit-204
pkgver=2.0.4
pkgrel=1
pkgdesc="a library for guessing information from video filenames"
arch=('any')
url="http://pypi.python.org/pypi/${_pythonmod}"
license=('GPL3')
source=("https://pypi.io/packages/source/${_pythonmod:0:1}/${_pythonmod}/${_pythonmod}-$pkgver.tar.gz")
md5sums=('2fc60912f7a12ca9573e265de23556d6')
package_python2-guessit-204() {
provides=('python2-guessit=2.0.4')
conflicts=('python2-guessit=2.0.4')
depends=('python2' 'python2-rebulk>=0.7.0' 'python2-babelfish>=0.5.5' 'python2-dateutil')
cd ${srcdir}/${_pythonmod}-$pkgver
python2 setup.py install --root=${pkgdir}
#rename binary to avoid conflict with Python3 version
mv ${pkgdir}/usr/bin/guessit{,2}
}
package_python-guessit-204() {
provides=('python-guessit=2.0.4')
conflicts=('python-guessit=2.0.4')
depends=('python' 'python-rebulk>=0.7.0' 'python-babelfish>=0.5.5' 'python-dateutil')
cd ${srcdir}/${_pythonmod}-$pkgver
python setup.py install --root=${pkgdir}
}