summaryrefslogtreecommitdiff
path: root/community/recorditnow/PKGBUILD
blob: f9bc87caf9f63ed6025aecd6daf3a6a6daddf7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $Id: PKGBUILD 97147 2013-09-14 07:29:00Z bpiotrowski $
# 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=7
pkgdesc="A plugin based desktop recorder for KDE SC 4"
arch=('i686' 'x86_64' 'mips64el')
url="http://kde-apps.org/content/show.php/RecordItNow?content=114610"
license=('GPL')
depends=('kdebase-runtime' 'ffmpeg' 'xdg-utils')
makedepends=('cmake' 'automoc4' 'recordmydesktop' 'mencoder')
optdepends=('mencoder: for mencoder encoder plugin'
            'recordmydesktop')
provides=('joschy')
install=recorditnow.install
source=("http://downloads.sourceforge.net/project/recorditnow/${pkgname}-${pkgver}.tar.bz2"
        "cmake.patch"
        "ffmpeg.patch")
md5sums=('6619b4048545adbab1d13a790189e80f'
         '74ea0ababc2291e2a62e5d045c62616a'
         '867f30a0cba692c7dad56195fd64b092')

prepare() {
  cd "${srcdir}/$pkgname-$pkgver"
  patch -p0 -i "${srcdir}/cmake.patch"
  patch -p0 -i "${srcdir}/ffmpeg.patch"
}

build() {
  cd "${srcdir}/$pkgname-$pkgver"

  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
}