summaryrefslogtreecommitdiffstats
path: root/kde/polkit-kde/Pkgfile
blob: 472da75bed89b9e9591a83222c40e88092a0f70d (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
# Description: Librairie d'agent d'authentification de kde
# URL: http://www.kde.org
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: cmake, kdelibs
# Run on:

name=polkit-kde
version=0.95.1
release=3
source=(ftp://kde.mirrors.pair.com/stable/apps/KDE4.x/admin/$name-1-$version.tar.bz2
	http://nutyx.meticul.eu/files/patchs/$name/{xdg-path.patch,gcc45.patch})

build() {
	cd $SRC/$name-1-$version

	patch -Np0 -i ../xdg-path.patch 
	patch -Np0 -i ../gcc45.patch

	cd ..
	mkdir build
	cd build
	export XDG_CONFIG_DIRS=/etc/xdg
	cmake ../$name-1-$version \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_SKIP_RPATH=ON
	make
	make DESTDIR=$PKG install
}