diff options
Diffstat (limited to 'abs/core/python_modules/python-pymedia/PKGBUILD')
-rw-r--r-- | abs/core/python_modules/python-pymedia/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pymedia/PKGBUILD b/abs/core/python_modules/python-pymedia/PKGBUILD new file mode 100644 index 0000000..5433471 --- /dev/null +++ b/abs/core/python_modules/python-pymedia/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: TDY <tdy@gmx.com> + +pkgname=python-pymedia +pkgver=1.3.7.3 +pkgrel=2 +pkgdesc="A Python library for accessing and manipulating multimedia files" +arch=('i686' 'x86_64') +url="http://pymedia.org/" +license=('LGPL') +depends=('alsa-lib' 'ffmpeg-svn' 'python2') +optdepends=('faad2: AAC support' + 'lame: MP3 support' + 'libogg: Ogg support' + 'libvorbis: Vorbis support') +source=(http://downloads.sourceforge.net/${pkgname/*-}/${pkgname/*-}-$pkgver.tar.gz + ${pkgname/*-}-$pkgver-amd64-gentoo.diff) +md5sums=('2f4930c63866c97af5090b176e2a118a' + '3137e65e1208db98e404ee894fcd744a') + +build() { + cd "$srcdir/${pkgname/*-}-$pkgver" + patch -Np1 -i ../${pkgname/*-}-$pkgver-amd64-gentoo.diff || return 1 + + find "$srcdir/${pkgname/*-}-$pkgver" -name '*.py' | \ + xargs sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" || return 1 + find "$srcdir/${pkgname/*-}-$pkgver" -name '*.py' | \ + xargs sed -i "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" || return 1 + + python2 setup.py build || return 1 +} + +package() { + cd "$srcdir/${pkgname/*-}-$pkgver" + python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} |