summaryrefslogtreecommitdiff
path: root/community/recorditnow
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/recorditnow
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 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
+}