summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 282d40b848e87eee0a66788924a474f1c9c34174 (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
49
50
51
52
53
# Contributor: Flamelab <panosfilip@gmail.com>
# Based on kipi-plugins-svn PKGBUILD

pkgname=kipi-plugins-git
pkgver=r11398.4770a03
pkgrel=1
pkgdesc='A collection of plugins extending the KDE graphics and image applications as digiKam'
license=('GPL' 'LGPL' 'FDL')
arch=('i686' 'x86_64')
url="http://www.kipi-plugins.org/"
depends=('libkipi-git' 'libkexiv2-git' 'libkdcraw-git')
makedepends=('git' 'extra-cmake-modules-git' 'kcalcore' 'libkgeomap-git' 'libksane-git' 'libmediawiki-git' 'libkvkontakte-git' 'threadweaver' 'karchive' 'kqoauth-qt5-git' 'kdoctools')
optdepends=('hugin: for expoblending plugin'
	    'kcalcore: Calendar plugin'
	    'libkgeomap-git: A tool to geolocalize pictures'
	    'libmediawiki-git: A tool to export images to Mediawiki based web service'
	    'libkvkontakte-git: A tool to export images to VKontakte web service'
	    'threadweaver: for Panorama'
	    'karchive: for FlashExport'
	    'kqoauth-qt5-git For Imgur Auhtenticated API')
conflicts=('kipi-plugins')
provides=('kipi-plugins')
install=kipi-plugins-git.install
source=('kipi-plugins::git+git://anongit.kde.org/kipi-plugins')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/kipi-plugins"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
if [[ -d "${srcdir}/build" ]]; then
      msg "Cleaning the previous build directory..."
      rm -rf "${srcdir}/build"
  fi
  mkdir "${srcdir}/build"
}

build() {
  cd "${srcdir}/build"
  cmake "${srcdir}/kipi-plugins" -DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DLIB_INSTALL_DIR=lib \
                -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
                -DBUILD_TESTING=OFF
  make
}

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