blob: 18e1f6b50e84dcd868cca2ab8717dc937e2c2818 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $Id: PKGBUILD 27187 2010-09-18 15:58:45Z schuay $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: DonVla <donvla@users.sourceforge.net>
pkgname=kaa-metadata
pkgver=0.7.7
pkgrel=3
pkgdesc="KAA metadata package"
url="http://freevo.sourceforge.net/"
license=('GPL2')
depends=('libdvdread' 'python2' 'kaa-base')
arch=('i686' 'x86_64' 'mips64el')
source=(http://downloads.sourceforge.net/freevo/$pkgname-$pkgver.tar.gz)
md5sums=('4bca23a0c695b4281ae2220022cdeb77')
package() {
cd ${srcdir}/${pkgname}-${pkgver}
# python2 fix
for file in $(find . -name '*.py' -print); do
sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
done
python2 setup.py install --prefix=${pkgdir}/usr --optimize=1
# rename executable, conflicts with mmpython FS#14601
mv ${pkgdir}/usr/bin/mminfo ${pkgdir}/usr/bin/kaa-mminfo
}
|