summaryrefslogtreecommitdiff
path: root/kde-unstable/kdeutils/PKGBUILD
blob: 449b47a96e0c8dbe3ef943e06a65dc0216e34f5b (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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# $Id: PKGBUILD 128591 2011-06-24 12:56:50Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgbase=kdeutils
pkgname=('kdeutils-ark'
         'kdeutils-filelight'
         'kdeutils-kcalc'
         'kdeutils-kcharselect'
         'kdeutils-kdf'
         'kdeutils-kfloppy'
         'kdeutils-kgpg'
         'kdeutils-kremotecontrol'
         'kdeutils-ktimer'
         'kdeutils-kwallet'
         'kdeutils-printer-applet'
         'kdeutils-superkaramba'
         'kdeutils-sweeper')
pkgver=4.6.90
pkgrel=1
arch=('i686' 'x86_64')
url='http://www.kde.org'
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdeutils')
makedepends=('pkgconfig' 'cmake' 'automoc4' 'kdebase-lib' 'kdebase-workspace'
	'kdebindings-python' 'system-config-printer-common' 'libarchive' 'qimageblitz'
	'qjson')
source=("http://download.kde.org/unstable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2")
sha1sums=('d2782e6b24ea433017c31412d1b2610d87549c7d')

build() {
	cd ${srcdir}
	mkdir build
	cd build
	cmake ../${pkgbase}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_SKIP_RPATH=ON \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package_kdeutils-ark() {
	pkgdesc='Archiving Tool'
	depends=('kdebase-runtime' 'kdebase-lib' 'libarchive')
	optdepends=('p7zip' 'zip' 'unzip' 'unrar')
	url="http://kde.org/applications/utilities/ark/"
	cd $srcdir/build/ark
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/ark
	make DESTDIR=$pkgdir install
}

package_kdeutils-filelight() {
	pkgdesc='View disk usage information'
	depends=('kdebase-runtime' 'qimageblitz')
	replaces=('filelight')
	conflicts=('filelight')
	install='kdeutils.install'
	url="http://methylblue.com/filelight/"
	cd $srcdir/build/filelight
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/filelight
	make DESTDIR=$pkgdir install
}

package_kdeutils-kcalc() {
	pkgdesc='Scientific Calculator'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/utilities/kcalc/"
	cd $srcdir/build/kcalc
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kcalc
	make DESTDIR=$pkgdir install
}

package_kdeutils-kcharselect() {
	pkgdesc='Character Selector'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/utilities/kcharselect/"
	cd $srcdir/build/kcharselect
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kcharselect
	make DESTDIR=$pkgdir install
}

package_kdeutils-kdf() {
	pkgdesc='View Disk Usage'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/system/kdiskfree/"
	install='kdeutils.install'
	cd $srcdir/build/kdf
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kdf
	make DESTDIR=$pkgdir install
}

package_kdeutils-kfloppy() {
	pkgdesc='Floppy Formatter'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/utilities/kfloppy/"
	install='kdeutils.install'
	cd $srcdir/build/kfloppy
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kfloppy
	make DESTDIR=$pkgdir install
}

package_kdeutils-kgpg() {
	pkgdesc='A GnuPG frontend'
	depends=('kdepim-runtime' 'kde-agent')
	url="http://kde.org/applications/utilities/kgpg"
	install='kdeutils.install'
	cd $srcdir/build/kgpg
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kgpg
	make DESTDIR=$pkgdir install
}

package_kdeutils-kremotecontrol() {
	pkgdesc='Configure your remote controls for use with applications'
	replaces=('kdeutils-kdelirc')
	conflicts=('kdeutils-kdelirc')
	depends=('kdebase-workspace')
	url="http://kde.org/applications/utilities/kremotecontrol"
	install='kdeutils.install'
	cd $srcdir/build/kremotecontrol
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kcontrol/kremotecontrol
	make DESTDIR=$pkgdir install
}

package_kdeutils-ktimer() {
	pkgdesc='Countdown Launcher'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/utilities/ktimer"
	install='kdeutils.install'
	cd $srcdir/build/ktimer
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/ktimer
	make DESTDIR=$pkgdir install
}

package_kdeutils-kwallet() {
	pkgdesc='Wallet Management Tool'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/system/kwalletmanager/"
	install='kdeutils.install'
	cd $srcdir/build/kwallet
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kwallet
	make DESTDIR=$pkgdir install
}

package_kdeutils-printer-applet() {
	pkgdesc='System tray icon for managing print jobs'
	depends=('kdebase-runtime' 'kdebindings-python' 'system-config-printer-common')
	url="http://kde.org/applications/system/printerapplet/"
	cd $srcdir/build/printer-applet
	make DESTDIR=$pkgdir install

        # Use the python2 executable
        find "${pkgdir}" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
}

package_kdeutils-superkaramba() {
	pkgdesc='An engine for cool desktop eyecandy'
	depends=('kdebase-runtime' 'kdebindings-python' 'qimageblitz')
	url="http://kde.org/applications/utilities/superkaramba"
	install='kdeutils.install'
	cd $srcdir/build/superkaramba
	make DESTDIR=$pkgdir install
}

package_kdeutils-sweeper() {
	pkgdesc='System Cleaner'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/utilities/sweeper/"
	cd $srcdir/build/sweeper
	make DESTDIR=$pkgdir install
}