PKGBUILD 1.72 KB
Newer Older
1 2 3
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/gwenview

pkgname=gwenview
totte's avatar
totte committed
4
pkgver=19.08.2
5
pkgrel=3
6 7 8
pkgdesc="A fast and easy to use image viewer for KDE"
arch=('x86_64')
url="http://kde.org/applications/graphics/gwenview/"
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
9
screenshot="https://www.kde.org/images/screenshots/gwenview.png"
10
license=('GPL' 'LGPL' 'FDL')
11
depends=('kded' 'kactivities-frameworks' 'libkdcraw' 'libkipi' 'baloo-kf5' 'lcms2' 'exiv2')
12
makedepends=('extra-cmake-modules' 'kdoctools' 'python3')
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
13 14
optdepends=('qt5-imageformats: support for tiff, webp, and more image formats'
            'kimageformats: support for dds, xcf, exr, psd, and more image formats')
15
groups=('kde' 'kde-uninstall' 'kde-applications' 'kdegraphics')
16 17 18
provides=('kdegraphics-gwenview')
replaces=('kdegraphics-gwenview')
conflicts=('kdegraphics-gwenview')
19
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
totte's avatar
totte committed
20
sha256sums=('fa49352a208c9472c911d3579f7601fb915831ad42caf74a053ed749bf5bb1fb'
Luca Giambonini's avatar
Luca Giambonini committed
21
            'SKIP')
22 23
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
24 25

prepare() {
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
26
  mkdir -p build
27 28 29 30
}

build() {
  cd build
31 32 33 34 35 36 37 38 39
  cmake ../${pkgname}-${pkgver} \
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@" \
Neophytos Kolokotronis's avatar
Neophytos Kolokotronis committed
40
  -DGWENVIEW_SEMANTICINFO_BACKEND="Baloo"
41 42 43 44 45 46 47
  make
}

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