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/recorditnow/PKGBUILD | 47 +++++++++++++++++++++++++++++++ community/recorditnow/cmake.patch | 13 +++++++++ community/recorditnow/recorditnow.install | 11 ++++++++ 3 files changed, 71 insertions(+) create mode 100644 community/recorditnow/PKGBUILD create mode 100644 community/recorditnow/cmake.patch create mode 100644 community/recorditnow/recorditnow.install (limited to 'community/recorditnow') 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 +# Contributor: Yichao Yu +# Contributor: Weng Xuetian +# Contributor: AdriĆ  Arrufat +# Contributor: Callea Gaetano Andrea + +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 +} -- cgit v1.2.3-54-g00ecf