summaryrefslogtreecommitdiff
path: root/libre/libkgapi/PKGBUILD
blob: 7062008f4a97ee0d135e1577d203f35a75f5031e (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
# Maintainer (Arch): Antonio Rojas <arojas@archlinux.org>
# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>

# parabola changes and rationale:
#  - reverting from qt5-webengine back to qt5-webkit

pkgname=libkgapi
pkgver=18.12.3
pkgrel=1
pkgrel+=.parabola1
pkgdesc="A KDE-based library for accessing various Google services via their public API"
pkgdesc+=" (without nonfree qt5-webengine)"
url='https://www.kde.org/'
arch=(x86_64)
arch+=(i686 armv7h)
license=(GPL LGPL FDL)
depends=(kcalcore kcontacts qt5-webkit kio)
makedepends=(extra-cmake-modules qt5-tools)
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}
        libre.patch)
sha256sums=('de0314fd83d8fa8f88e6a355c4725047d2e507e0d40f1950c8ae083c2bc21924'
            'SKIP'
            '7ca4817130bc78822798c1fc54e6800db4283da858ba2a142fc5110c48221000')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>

prepare() {
  mkdir -p build

  cd $pkgname-$pkgver
  patch -Np1 -i "$srcdir"/libre.patch
}

build() {
  cd build
  cmake ../$pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DBUILD_TESTING=OFF
  make
}

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