summaryrefslogtreecommitdiffstats
path: root/kde/kdeedu/Pkgfile
blob: 74a034d76ab4f84411444a2446953e5d975dc670 (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
# 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
# Run on: kdebase-runtime,libxslt

name=kdeedu
version=4.6.2
release=1

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

build() {
	unset MAKEFLAGS
	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/kde 

	make
	make DESTDIR=$PKG install

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

	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
}