summaryrefslogtreecommitdiff
path: root/extra/kaffeine/PKGBUILD
blob: 0d44e0aa3aabfe8e8fa0d84db40f38f81293a2be (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
# $Id: PKGBUILD 191225 2013-07-21 20:40:01Z eric $
# Maintainer: 
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgname=kaffeine
pkgver=1.2.2
pkgrel=3
pkgdesc='KDE media player'
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
url="http://kaffeine.kde.org"
depends=('kdebase-runtime' 'xine-lib')
makedepends=('cmake' 'automoc4')
install=kaffeine.install
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
        kaffeine-1.2.2-gcc4.7.patch)
md5sums=('690e48d2e5fe123887109aa9b1bc1c31'
         '48afe5ec99b38fe02782db57a847033f')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p1 -i "${srcdir}/kaffeine-1.2.2-gcc4.7.patch"
}

build() {
  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_SKIP_RPATH=ON \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}