summaryrefslogtreecommitdiff
path: root/community/recorditnow
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/recorditnow
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/recorditnow')
-rw-r--r--community/recorditnow/PKGBUILD47
-rw-r--r--community/recorditnow/cmake.patch13
-rw-r--r--community/recorditnow/recorditnow.install11
3 files changed, 71 insertions, 0 deletions
diff --git a/community/recorditnow/PKGBUILD b/community/recorditnow/PKGBUILD
new file mode 100644
index 000000000..f3c003518
--- /dev/null
+++ b/community/recorditnow/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 93279 2013-07-01 05:44:50Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Yichao Yu <yyc1992@gmail.com>
+# Contributor: Weng Xuetian <wengxt@gmail.com>
+# Contributor: AdriĆ  Arrufat <swiftscythe@gmail.com>
+# Contributor: Callea Gaetano Andrea <callea:gaetano:andrea/gmail:com>
+
+pkgname=recorditnow
+pkgver=0.8.1
+pkgrel=5
+pkgdesc="A plugin based desktop recorder for KDE SC 4"
+arch=('i686' 'x86_64')
+url="http://kde-apps.org/content/show.php/RecordItNow?content=114610"
+license=('GPL')
+depends=('kdebase-runtime' 'ffmpeg' 'xdg-utils')
+makedepends=('cmake' 'automoc4' 'recordmydesktop')
+optdepends=('mencoder: for mencoder encoder plugin'
+ 'recordmydesktop')
+provides=('joschy')
+conflicts=('joschy-git')
+install=recorditnow.install
+source=("http://downloads.sourceforge.net/project/recorditnow/${pkgname}-${pkgver}.tar.bz2"
+ "cmake.patch")
+md5sums=('6619b4048545adbab1d13a790189e80f'
+ '74ea0ababc2291e2a62e5d045c62616a')
+
+build() {
+ cd "${srcdir}/$pkgname-$pkgver"
+ patch -i "${srcdir}/cmake.patch" -p0
+
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
+ -DLINGUAS="de hu cs pt_BR fr it" ..
+ make
+}
+
+package() {
+ cd "${srcdir}/$pkgname-$pkgver/build"
+ make DESTDIR="${pkgdir}" install
+
+ if [[ "$CARCH" == "x86_64" ]]; then
+ cd "$pkgdir/usr"
+ mv lib64/* lib
+ rmdir lib64
+ fi
+}
diff --git a/community/recorditnow/cmake.patch b/community/recorditnow/cmake.patch
new file mode 100644
index 000000000..c9f067646
--- /dev/null
+++ b/community/recorditnow/cmake.patch
@@ -0,0 +1,13 @@
+--- src/CMakeLists.txt.orig 2012-03-17 19:36:44.834973898 +0800
++++ src/CMakeLists.txt 2012-03-17 19:40:00.894972395 +0800
+@@ -121,6 +121,10 @@
+ recorditnow_recorder
+ recorditnow_encoder
+ recorditnow_keymon
++ recorditnow_plugin
++ ${X11_X11_LIB}
++ ${X11_Xext_LIB}
++ ${X11_Xfixes_LIB}
+ ${X11_Xcursor_LIB})
+
+ if (BUILD_WITH_JOSCHY)
diff --git a/community/recorditnow/recorditnow.install b/community/recorditnow/recorditnow.install
new file mode 100644
index 000000000..c0797237a
--- /dev/null
+++ b/community/recorditnow/recorditnow.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}