PKGBUILD 1.03 KB
Newer Older
1 2
# Source global configuration
source ../kdeapps.conf
Manuel Tortosa's avatar
Manuel Tortosa committed
3 4

pkgname=kaffeine
5
pkgver=2.0.15
6
pkgrel=3
7
pkgdesc='Media player with support for digital television (DVB-C/S/S2/T and ATSC, decryption with CI/CAM)'
Manuel Tortosa's avatar
Manuel Tortosa committed
8
license=('GPL')
Neophytos's avatar
Neophytos committed
9
arch=('x86_64')
Jeff Huang's avatar
Jeff Huang committed
10
url="https://kaffeine.kde.org"
11
depends=('kio' 'libxss' 'vlc')
12
makedepends=('extra-cmake-modules' 'kidletime' 'kdoctools')
13
categories=('multimedia')
14
options=('debug')
15 16 17 18
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${pkgver}.tar.xz"
        "https://github.com/KDE/kaffeine/commit/06b78c5f24891fd38d25ed64f5029106eec7c4fb.diff")
sha256sums=('e61573199fe4e04377679a5cf8b32b3aa0bb4201c56371e11820d3a3ae41904d'
            '27a8b4851b63fe942dfc38fb64c8049b4c35821d84175659d9d49b32f3094f25')
19 20 21

prepare() {
  mkdir -p build
22 23 24
  cd $pkgname-$pkgver
 # Fix build with qt5.11
  patch -p1 -i ../06b78c5f24891fd38d25ed64f5029106eec7c4fb.diff 
25
}
Manuel Tortosa's avatar
Manuel Tortosa committed
26 27

build() {
28
  cd build
29 30 31 32
  cmake ../$pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_TESTING=OFF 
   make
Manuel Tortosa's avatar
Manuel Tortosa committed
33
}
Neophytos's avatar
Neophytos committed
34 35

package() {
36 37
  cd build
  make DESTDIR="$pkgdir" install
Neophytos's avatar
Neophytos committed
38
}