summaryrefslogtreecommitdiff
path: root/extra/miro/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/miro/PKGBUILD')
-rw-r--r--extra/miro/PKGBUILD24
1 files changed, 19 insertions, 5 deletions
diff --git a/extra/miro/PKGBUILD b/extra/miro/PKGBUILD
index ec7178126..e177e9d9a 100644
--- a/extra/miro/PKGBUILD
+++ b/extra/miro/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 148432 2012-01-31 20:05:46Z ronald $
+# $Id: PKGBUILD 158653 2012-05-05 12:58:13Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
pkgname=miro
-pkgver=4.0.6
+pkgver=5.0
pkgrel=1
pkgdesc="The free and open source internet TV platform"
arch=('i686' 'x86_64')
@@ -13,12 +13,12 @@ depends=('dbus-python' 'pyrex' 'pygtk' 'gstreamer0.10' 'python2-gconf'
'desktop-file-utils' 'gstreamer0.10' 'hicolor-icon-theme'
'gstreamer0.10-python' 'python-notify' 'libtorrent-rasterbar'
'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'python-pycurl'
- 'gstreamer0.10-ffmpeg' 'ffmpeg' 'mutagen')
-makedepends=('pkg-config')
+ 'gstreamer0.10-ffmpeg' 'ffmpeg' 'mutagen' 'xdg-utils')
+makedepends=('pkg-config' 'boost')
install=miro.install
options=('!makeflags')
source=("http://ftp.osuosl.org/pub/pculture.org/${pkgname}/src/${pkgname}-${pkgver}.tar.gz")
-sha1sums=('5c3d632d8cf30516b321f79b22d4468b61ff9e6c')
+sha1sums=('64350e658ac427378b84ff1356adce668ddbd521')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -29,4 +29,18 @@ build() {
# fix miro startup script so --debug works with python2
sed -i "s|which python|which python2|" "${pkgdir}/usr/bin/miro"
sed -i "s|./miro.real|/usr/bin/miro.real|" "${pkgdir}/usr/bin/miro"
+
+ # fix python scripts for python2
+ sed -i "s|/usr/bin/env python|/usr/bin/env python2|" ${pkgdir}/usr/share/miro/resources/searchengines/update-icons.py
+ for i in usr/share/miro/resources/testdata/echonest-replies/generate.py usr/share/miro/resources/searchengines/update-icons.py \
+ usr/share/miro/resources/testdata/7digital-replies/generate.py; do
+ sed -i "s|/usr/bin/python|/usr/bin/python2|" ${pkgdir}/${i}
+ done
+
+ # Fakeroot segfaults on these; remove
+ if [ ${arch} == "i686" ]; then
+ rm -f ${pkgdir}/usr/bin/codegen.Linux-x86_64 || true
+ else
+ rm -f ${pkgdir}/usr/bin/codegen.Linux-i686 || true
+ fi
}