summaryrefslogtreecommitdiffstats
path: root/kde/kdeadmin/Pkgfile
blob: 9745debbc3c2dd5e840b0efe15799e17251b5db2 (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
# Description: programmes pour gérer les utilisateurs, initialisation de fichiers, programateur de taches, et connections réseaux pour KDE
# URL: http://www.kde.org
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: cmake, automoc4, kdelibs, kdebase-runtime, kdepimlibs, pycups, pyqt, system-config-printer, kdebindings, docbook-xsl
# Run on: kdelibs,kdebase-runtime,kdepimlibs,pycups,pyqt,system-config-printer,kdebindings

name=kdeadmin
version=4.6.0
release=2
source=( ftp://ftp.kde.org/pub/kde/stable/$version/src/$name-$version.tar.bz2
	kdeadmin-4.6.0-syslog-path.patch)

build() {
	cd $name-*
	patch -p1 -i ../kdeadmin-4.6.0-syslog-path.patch

	mkdir build
	cd build
	cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_SKIP_RPATH=ON \
		-DBUILD_kpackage=OFF \
		-DBUILD_knetworkconf=OFF \
		-DBUILD_lilo-config=OFF \
		-DBUILD_strigi-analyzer=OFF
	make
	make DESTDIR=$PKG install
	
	find $PKG -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
}