diff --git a/pkgbuild/python-guessit-204/.SRCINFO b/pkgbuild/python-guessit-204/.SRCINFO new file mode 100644 index 0000000..ad7bdbe --- /dev/null +++ b/pkgbuild/python-guessit-204/.SRCINFO @@ -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 + diff --git a/pkgbuild/python-guessit-204/PKGBUILD b/pkgbuild/python-guessit-204/PKGBUILD new file mode 100644 index 0000000..52414b6 --- /dev/null +++ b/pkgbuild/python-guessit-204/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Cedric Girard +_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} +}