diff options
-rw-r--r-- | abs/core/python_modules/python2-guessit/PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/core/python_modules/python2-guessit/PKGBUILD b/abs/core/python_modules/python2-guessit/PKGBUILD new file mode 100644 index 0000000..95d7e35 --- /dev/null +++ b/abs/core/python_modules/python2-guessit/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Cedric Girard <girard.cedric@gmail.com> +_pythonmod=guessit +pkgname=python2-guessit +pkgver=2.1.4 +pkgrel=1 +pkgdesc="a library for guessing information from video filenames" +arch=('any') +url="http://pypi.python.org/pypi/${_pythonmod}" +license=('GPL3') +replaces=('python2-guessit-rc') +depends=('python2' 'python2-rebulk>=0.9.0' 'python2-babelfish>=0.5.5' 'python2-dateutil') +makedepends=('python2-setuptools') +source=("https://pypi.io/packages/source/${_pythonmod:0:1}/${_pythonmod}/${_pythonmod}-$pkgver.tar.gz") +md5sums=('b4fee9c4e106e6de0020e3d143932bb3') + +prepare() { + cd ${srcdir}/${_pythonmod}-$pkgver + find -type f -exec sed -i '1 s|python$|python2|' {} + +} + +build() { + cd ${srcdir}/${_pythonmod}-$pkgver + python2 setup.py build +} + +package() { + cd ${srcdir}/${_pythonmod}-$pkgver + python2 setup.py install --root=${pkgdir} +} |