Skip to content

Commit

Permalink
python2/3 guessit at version 2.0.4 for flexget
Browse files Browse the repository at this point in the history
  • Loading branch information
X-dark committed Dec 12, 2017
1 parent 7f476ba commit 5edada2
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkgbuild/python-guessit-204/.SRCINFO
Original file line number Diff line number Diff line change
@@ -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

32 changes: 32 additions & 0 deletions pkgbuild/python-guessit-204/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Maintainer: Cedric Girard <[email protected]>
_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}
}

0 comments on commit 5edada2

Please sign in to comment.