From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/qt-recordmydesktop/PKGBUILD | 42 ++++++++++++++++++++++++++++++++ community/qt-recordmydesktop/pyqt4.patch | 11 +++++++++ 2 files changed, 53 insertions(+) create mode 100644 community/qt-recordmydesktop/PKGBUILD create mode 100644 community/qt-recordmydesktop/pyqt4.patch (limited to 'community/qt-recordmydesktop') diff --git a/community/qt-recordmydesktop/PKGBUILD b/community/qt-recordmydesktop/PKGBUILD new file mode 100644 index 000000000..c8704f45e --- /dev/null +++ b/community/qt-recordmydesktop/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 92883 2013-06-17 19:06:55Z andrea $ +# Maintainer: Thomas Dziedzic < gostrc at gmail > +# Contributor: Daniel J Griffiths +# Contributor: Allan McRae +# Contributor: Marc poiroud + +pkgname=qt-recordmydesktop +pkgver=0.3.8 +pkgrel=6 +pkgdesc="Qt4 frontend for recordMyDesktop" +arch=('i686' 'x86_64') +url="http://recordmydesktop.sourceforge.net" +license=('GPL') +depends=('recordmydesktop>=0.3.8.1' 'python2-pyqt') +source=(http://downloads.sourceforge.net/sourceforge/recordmydesktop/${pkgname}-${pkgver}.tar.gz + 'pyqt4.patch') +md5sums=('bf1525740755615ae172ae27fef68fb5' + 'ce1dc05b512df883d0e204eac2b1eaaf') + +prepare() { + cd ${pkgname}-${pkgver} + patch -p1 -i "${srcdir}"/pyqt4.patch +} + +build() { + cd ${pkgname}-${pkgver} + + # python2 fix + sed -i 's|PYQT4_VERSION=`python -c|PYQT4_VERSION=`python2 -c|' configure + sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' src/qt-recordMyDesktop.in + + ./configure \ + --prefix=/usr + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +} diff --git a/community/qt-recordmydesktop/pyqt4.patch b/community/qt-recordmydesktop/pyqt4.patch new file mode 100644 index 000000000..5c082e446 --- /dev/null +++ b/community/qt-recordmydesktop/pyqt4.patch @@ -0,0 +1,11 @@ +--- qt-recordmydesktop-0.3.8/configure.ac~ 2013-06-17 18:22:27.747345090 +0000 ++++ qt-recordmydesktop-0.3.8/configure.ac 2013-06-17 18:22:46.937225955 +0000 +@@ -43,7 +43,7 @@ + + export PYTHONPATH=$PYTHONPATH + +-export PYQT4_VERSION=`python -c 'import PyQt4; from PyQt4 import QtCore; print QtCore.PYQT_VERSION_STR' 2>>/dev/null ` ++export PYQT4_VERSION=`python2 -c 'import PyQt4; from PyQt4 import QtCore; print QtCore.PYQT_VERSION_STR' 2>>/dev/null ` + if test x$PYQT4_VERSION == x; then + AC_MSG_ERROR(You need PyQt4>=4.1 installed to procceed); + fi -- cgit v1.2.3-54-g00ecf