diff options
Diffstat (limited to 'community/recordmydesktop')
-rw-r--r-- | community/recordmydesktop/PKGBUILD | 29 | ||||
-rw-r--r-- | community/recordmydesktop/recordmydesktop-bitrate.patch | 50 | ||||
-rw-r--r-- | community/recordmydesktop/shmstr-to-shmproto.patch | 20 |
3 files changed, 99 insertions, 0 deletions
diff --git a/community/recordmydesktop/PKGBUILD b/community/recordmydesktop/PKGBUILD new file mode 100644 index 000000000..f559b7a2b --- /dev/null +++ b/community/recordmydesktop/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 19250 2010-06-21 20:31:18Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Gilles CHAUVIN <gcnweb at gmail dot com> + +pkgname=recordmydesktop +pkgver=0.3.8.1 +pkgrel=5 +pkgdesc="Produces a OGG encapsulated Theora/Vorbis recording of your desktop" +arch=('i686' 'x86_64') +url="http://recordmydesktop.sourceforge.net" +license=('GPL') +depends=('alsa-lib' 'zlib' 'libvorbis' 'libxdamage' 'libxext' 'libtheora' 'libsm' 'jack') +makedepends=('jack-audio-connection-kit') +source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz + shmstr-to-shmproto.patch + recordmydesktop-bitrate.patch) +md5sums=('6998b165540598965499bd99d8aa0eef' + '211a1773f223b3f281520aa1056395e6' + 'b0794a769efd287e9e8c5fb8c3299b35') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -p0 < ${srcdir}/shmstr-to-shmproto.patch + patch -p1 < ${srcdir}/recordmydesktop-bitrate.patch + ./configure --prefix=/usr --enable-jack=yes LIBS="`pkg-config --libs jack`" \ + CFLAGS="`pkg-config --cflags jack` -DHAVE_LIBJACK" || return 1 + make || return 1 + make DESTDIR=${pkgdir} install +} diff --git a/community/recordmydesktop/recordmydesktop-bitrate.patch b/community/recordmydesktop/recordmydesktop-bitrate.patch new file mode 100644 index 000000000..9b014486a --- /dev/null +++ b/community/recordmydesktop/recordmydesktop-bitrate.patch @@ -0,0 +1,50 @@ +diff -ru recordmydesktop-0.3.8.1.old/src/rmd_initialize_data.c recordmydesktop-0.3.8.1/src/rmd_initialize_data.c +--- recordmydesktop-0.3.8.1.old/src/rmd_initialize_data.c 2009-11-25 10:05:58.708779029 -0500 ++++ recordmydesktop-0.3.8.1/src/rmd_initialize_data.c 2009-11-25 09:28:07.629507987 -0500 +@@ -224,7 +224,7 @@ + args->channels = 1; + args->frequency = 22050; + args->buffsize = 4096; +- args->v_bitrate = 45000; ++ args->v_bitrate = 0; + args->v_quality = 63; + args->s_quality = 10; + +diff -ru recordmydesktop-0.3.8.1.old/src/rmd_parseargs.c recordmydesktop-0.3.8.1/src/rmd_parseargs.c +--- recordmydesktop-0.3.8.1.old/src/rmd_parseargs.c 2009-11-25 10:06:07.409777969 -0500 ++++ recordmydesktop-0.3.8.1/src/rmd_parseargs.c 2009-11-25 09:39:32.786757292 -0500 +@@ -104,10 +104,10 @@ + "Encoding Options\n" + "\t--on-the-fly-encoding\tEncode the audio-video data, while recording.\n" + "\t--v_quality n\t\tA number from 0 to 63 for" +- " desired encoded video quality(default 63).\n" ++ " desired encoded video quality(default 63).\n\t (set quality to zero for bitrate controlled usage)\n" + +- "\t--v_bitrate n\t\tA number from 45000 to 2000000" +- " for desired encoded video bitrate(default 45000).\n" ++ "\t--v_bitrate n\t\tA number from 0 to 200000000" ++ " for desired encoded video bitrate(default 0 = not rate controlled).\n" + + "\t--s_quality n\t\tDesired audio quality(-1 to 10).\n\n" + +@@ -327,17 +327,17 @@ + strcmp(argv[i], "-v_bitrate") == 0) { + if(i+1<argc){ + int num=atoi(argv[i+1]); +- if((num>=45000)&&(num<=2000000)) ++ if((num>=0)&&(num<=200000000)) + arg_return->v_bitrate=num; + else{ + fprintf(stderr,"Argument Usage:" +- " --v_bitrate n(number 45000-2000000)\n"); ++ " --v_bitrate n(number 0-200000000)\n"); + return FALSE; + } + } + else{ + fprintf(stderr,"Argument Usage:" +- " --v_bitrate n(number 45000-2000000)\n"); ++ " --v_bitrate n(number 0-200000000)\n"); + return FALSE; + } + i++; diff --git a/community/recordmydesktop/shmstr-to-shmproto.patch b/community/recordmydesktop/shmstr-to-shmproto.patch new file mode 100644 index 000000000..6fc446e9a --- /dev/null +++ b/community/recordmydesktop/shmstr-to-shmproto.patch @@ -0,0 +1,20 @@ +--- src/rmd_getzpixmap.c 2008-12-13 17:04:10.000000000 +0100 ++++ src/rmd_getzpixmap.c 2009-11-11 11:30:18.000000000 +0100 +@@ -32,7 +32,7 @@ + + #include <X11/Xlib.h> + #include <X11/Xlibint.h> +-#include <X11/extensions/shmstr.h> ++#include <X11/extensions/shmproto.h> + #include <X11/extensions/XShm.h> + + +--- src/rmd_update_image.c 2008-12-13 17:20:49.000000000 +0100 ++++ src/rmd_update_image.c 2009-11-11 11:30:34.000000000 +0100 +@@ -32,7 +32,7 @@ + #include "rmd_types.h" + + #include <X11/Xlibint.h> +-#include <X11/extensions/shmstr.h> ++#include <X11/extensions/shmproto.h> + #include <X11/extensions/XShm.h> |