summaryrefslogtreecommitdiff
path: root/libre/kipi-plugins
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-03 01:26:55 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-03 01:26:55 -0300
commit5156402fd563b6078c36e081860bccadc77a72a0 (patch)
tree00130e67aa08dd6473885db427e53f1488b7be62 /libre/kipi-plugins
parent4cbcea3c1078e754ad555410d2fad0d3ed0e3bd3 (diff)
downloadabslibre-5156402fd563b6078c36e081860bccadc77a72a0.tar.gz
abslibre-5156402fd563b6078c36e081860bccadc77a72a0.tar.bz2
abslibre-5156402fd563b6078c36e081860bccadc77a72a0.zip
kipi-plugins: remove libre and nonprism suffixes, add complex pkgrel
Diffstat (limited to 'libre/kipi-plugins')
-rw-r--r--libre/kipi-plugins/PKGBUILD65
-rw-r--r--libre/kipi-plugins/kipi-plugins.install12
2 files changed, 77 insertions, 0 deletions
diff --git a/libre/kipi-plugins/PKGBUILD b/libre/kipi-plugins/PKGBUILD
new file mode 100644
index 000000000..6716c3de9
--- /dev/null
+++ b/libre/kipi-plugins/PKGBUILD
@@ -0,0 +1,65 @@
+# $Id: PKGBUILD 220487 2014-08-20 22:40:51Z svenstaro $
+# Maintainer (Arch): Ronald van Haren <ronald@archlinux.org>
+# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
+# Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Márcio Silva <coadde@parabola.nu>
+
+pkgbase=digikam
+pkgname=kipi-plugins
+pkgver=4.2.0
+pkgrel=2.parabola1
+pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam, without nonfree jAlbum and SimpleViewer support"
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+url="http://www.digikam.org/"
+replaces=("${pkgname}-libre")
+conflicts=("${pkgname}-libre")
+makedepends=('kdepimlibs' 'libkexiv2' 'libkdcraw' 'libkipi' 'libksane' 'liblqr'
+ 'kdeedu-marble' 'opencv' 'boost' 'libgpod' 'qjson' 'hugin' 'libgphoto2'
+ 'cmake' 'automoc4' 'doxygen' 'lensfun' 'qt-gstreamer' 'imagemagick' 'eigen')
+depends=('kdebase-runtime' 'kdepimlibs' 'libkdcraw' 'libkipi' 'libksane' 'libkexiv2')
+optdepends=('libkgeomap: Geolocalize tool'
+ 'libmediawiki: MediaWiki Export plugin'
+ 'libkvkontakte: VKontakte.ru Exporter plugin'
+ 'libgpod: iPodExport plugin'
+ 'opencv: Remove Red Eyes plugin'
+ 'imagemagick: Video SlideShow plugin'
+ 'qt-gstreamer: Video SlideShow plugin')
+options=('staticlibs')
+install=kipi-plugins.install
+source=("http://download.kde.org/stable/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2")
+sha1sums=('4a54136629bed3b30cf4e9355e8d5b498b0d4e54')
+
+prepare() {
+ cd ${srcdir}/${pkgbase}-${pkgver}
+ sed -i '\|flashexport|d
+ \|jalbumexport|d
+ ' extra/kipi-plugins/CMakeLists.txt
+ cd ..
+ mkdir build
+}
+
+build() {
+ cd build
+ cmake ../${pkgbase}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DBUILD_tests=OFF \
+ -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=OFF
+ make
+}
+
+package() {
+ cd build/extra/kipi-plugins
+ make DESTDIR="${pkgdir}" install
+
+ cd ../../../build/po
+ make DESTDIR="${pkgdir}" install
+ # Put these in the relevant splitted packages
+ rm "${pkgdir}"/usr/share/locale/*/LC_MESSAGES/libkgeomap.mo
+ rm "${pkgdir}"/usr/share/locale/*/LC_MESSAGES/digikam.mo
+ # Fix conflicts with kde-l10n-* (FS#33762)
+ rm "${pkgdir}"/usr/share/locale/*/LC_MESSAGES/libkipi.mo
+}
diff --git a/libre/kipi-plugins/kipi-plugins.install b/libre/kipi-plugins/kipi-plugins.install
new file mode 100644
index 000000000..81ce5c4b0
--- /dev/null
+++ b/libre/kipi-plugins/kipi-plugins.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}