summaryrefslogtreecommitdiffstats
path: root/kde/kdeedu/Pkgfile
blob: bb12809d8a52667282d6abd93129c41a6e42833b (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
# Description: Programmes d'apprentissiage KDE
# URL: http://www.kde.org
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: cmake, automoc4, boost, qt, kdelibs, kdebase-runtime, pyqt, xorg-libxtst, xorg-libxscrnsaver, kdebase-runtime, libxslt, libxml2, docbook-xsl, libspectre, gsl, eigen2, gpsd,marble
# Run on: kdebase-runtime,libxslt,pyqt,libspectre,gsl,eigen2,gpsd,marble

name=kdeedu
version=4.6.5
release=1

source=( ftp://ftp.kde.org/pub/kde/stable/$version/src/$name-$version.tar.bz2)

build() {
	cd $name-*
	mkdir build
	cd build
	cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_SKIP_RPATH=OFF \
		-DBUILD_doc=ON \
		-DKDE_DEFAULT_HOME=.kde \
                -DSYSCONF_INSTALL_DIR=/etc 

	make
	make DESTDIR=$PKG install

	sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' $PKG/usr/bin/pykig.py

	rm -rf $PKG/usr/share/apps/marble
	rm $PKG/usr/bin/geodatatest
	rm $PKG/usr/bin/marble
	rm $PKG/usr/bin/routing-instructions
	rm $PKG/usr/bin/tilecreator
	rm -rf $PKG/usr/include/marble/

#	install -D -m644 $SRC/$name-$version/cmake/modules/FindKDEEdu.cmake \
#		$PKG/usr/share/apps/cmake/modules/FindKDEEdu.cmake

#	install -D -m644 $SRC/$name-$version/cmake/modules/FindMarbleWidget.cmake \
#		$PKG/usr/share/apps/cmake/modules/FindMarbleWidget.cmake
}