blob: e0f3951f8accb79553f3296dbc3c938652084fa2 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
# $Id: PKGBUILD 121093 2011-04-29 00:27:32Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgbase=kdegraphics
pkgname=('kdegraphics-gwenview'
'kdegraphics-kamera'
'kdegraphics-kcolorchooser'
'kdegraphics-kgamma'
'kdegraphics-kolourpaint'
'kdegraphics-kruler'
'kdegraphics-ksnapshot'
'kdegraphics-libs'
'kdegraphics-okular')
pkgver=4.6.3
pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
url='http://www.kde.org'
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdegraphics')
makedepends=('pkgconfig' 'cmake' 'automoc4' 'qimageblitz' 'sane' 'lcms'
'libxxf86vm' 'poppler-qt' 'libspectre' 'chmlib' 'djvulibre'
'ebook-tools' 'kdebase-runtime')
source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2")
sha1sums=('c16dc9c55e7459418fa9887aa532ea0a269e7179')
build() {
cd ${srcdir}
mkdir build
cd build
CXX="g++" \
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package_kdegraphics-gwenview() {
pkgdesc='A simple image viewer'
depends=('kdebase-runtime' 'kdegraphics-libs')
url="http://kde.org/applications/graphics/gwenview/"
replaces=('gwenview' 'gwenview-i18n')
install='kdegraphics.install'
cd $srcdir/build/gwenview
make DESTDIR=$pkgdir install
cd $srcdir/build/gwenview/doc
make DESTDIR=$pkgdir install
}
package_kdegraphics-kamera() {
pkgdesc='Configure Kamera'
depends=('kdelibs' 'libgphoto2')
cd $srcdir/build/kamera
make DESTDIR=$pkgdir install
cd $srcdir/build/kamera/doc
make DESTDIR=$pkgdir install
}
package_kdegraphics-kcolorchooser() {
pkgdesc='Color Chooser'
depends=('kdebase-runtime')
url="http://kde.org/applications/graphics/kcolorchooser/"
install='kdegraphics.install'
cd $srcdir/build/kcolorchooser
make DESTDIR=$pkgdir install
}
package_kdegraphics-kgamma() {
pkgdesc='A monitor calibration tool'
# note on libxxf86vm:
# not detected by namcap because libgl depends on it
# but nvidia providing libgl does not depend on libxxf86vm
depends=('kdebase-runtime' 'libxxf86vm')
install='kdegraphics.install'
cd $srcdir/build/kgamma
make DESTDIR=$pkgdir install
cd $srcdir/build/kgamma/doc
make DESTDIR=$pkgdir install
}
package_kdegraphics-kolourpaint() {
pkgdesc='Paint Program'
depends=('kdebase-runtime' 'qimageblitz' 'kdegraphics-libs')
url="http://kde.org/applications/graphics/kolourpaint/"
install='kdegraphics.install'
cd $srcdir/build/kolourpaint
make DESTDIR=$pkgdir install
cd $srcdir/build/kolourpaint/doc
make DESTDIR=$pkgdir install
}
package_kdegraphics-kruler() {
pkgdesc='Screen Ruler'
depends=('kdebase-runtime')
url="http://kde.org/applications/graphics/kruler/"
install='kdegraphics.install'
cd $srcdir/build/kruler
make DESTDIR=$pkgdir install
cd $srcdir/build/kruler/doc
make DESTDIR=$pkgdir install
}
package_kdegraphics-ksnapshot() {
pkgdesc='Screen Capture Program'
depends=('kdebase-runtime' 'kdegraphics-libs')
url="http://kde.org/applications/graphics/ksnapshot/"
install='kdegraphics.install'
cd $srcdir/build/ksnapshot
make DESTDIR=$pkgdir install
cd $srcdir/build/ksnapshot/doc
make DESTDIR=$pkgdir install
}
package_kdegraphics-libs() {
pkgdesc='Support library for KDE Graphics Software'
groups=()
depends=('kdelibs' 'sane' 'lcms')
[ "$CARCH" = "mips64el" ] && \
depends=('kdelibs' 'lcms')
conflicts=('kdegraphics-ksaneplugin' 'kdegraphics-strigi-analyzer'
'kdegraphics-svgpart' 'kdegraphics-thumbnailers')
replaces=('libkexiv2' 'libkdcraw' 'kdegraphics-ksaneplugin'
'kdegraphics-strigi-analyzer' 'kdegraphics-svgpart' 'kdegraphics-thumbnailers')
install='kdegraphics.install'
for i in libs ksaneplugin strigi-analyzer svgpart thumbnailers; do
[ "$CARCH" = "mips64el" -a $i = ksaneplugin ] && continue
cd $srcdir/build/${i}
make DESTDIR=$pkgdir install
done
install -D -m644 $srcdir/${pkgbase}-${pkgver}/cmake/modules/FindKSane.cmake \
$pkgdir/usr/share/apps/cmake/modules/FindKSane.cmake
}
package_kdegraphics-okular() {
pkgdesc='Document Viewer'
depends=('kdebase-runtime' 'qimageblitz' 'poppler-qt' 'chmlib' 'djvulibre'
'ebook-tools' 'libspectre')
url="http://kde.org/applications/graphics/okular/"
install='kdegraphics.install'
cd $srcdir/build/okular
make DESTDIR=$pkgdir install
cd $srcdir/build/doc/okular
make DESTDIR=$pkgdir install
}
|