summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b87fec5ba3f457c98ea9836e72b6c67c638b451 (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
# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: shamrok <szamrok@gmail.com>
# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
# Contributor: AdriĆ  Arrufat <swiftscythe@gmail.com>

pkgname=krecipes
pkgver=2.1.0
pkgrel=5
pkgdesc="A tool designed to make organizing your personal recipes collection fast and easy"
arch=('x86_64')
url="http://extragear.kde.org/apps/krecipes/"
license=('GPL')
depends=('kdebase-runtime')
makedepends=('cmake' 'automoc4' 'docbook-xsl')
optdepends=('mariadb' 'postgresql')
source=("http://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz"
        krecipes-gcc6.patch::"https://cgit.kde.org/krecipes.git/patch/?id=f6d4f709ec57835b3fa4a660239a07321c9d02ff"
        disable-print-support.patch)
md5sums=('422ff3df8ab5aac56617d87942762e88'
         '1d45e7057062d7fee915c616af22855f'
         '8fe35c741681b22030fca2d2b7cc164e')

prepare() {
  cd $pkgname-$pkgver
# Fix build with GCC 6
  patch -p1 -i ../krecipes-gcc6.patch
# Disable print support (removes qtwebkit dependency)
  patch -p1 -i ../disable-print-support.patch
}

build() {
  cd ${srcdir}

  mkdir build
  cd build

  cmake ../$pkgname-$pkgver \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd ${srcdir}/build

  make DESTDIR=${pkgdir} install
}