summaryrefslogtreecommitdiffstats
path: root/kde/qtscriptgenerator/Pkgfile
blob: 0b0d2b1b4b08cf2677fd75b409b950e8214e5fb6 (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
# Description:Outil pour générer Qt binding pour Qt script
# URL:http://code.google.com/p/qtscriptgenerator/
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: qt, phonon
name=qtscriptgenerator
version=0.1.0
release=2

source=(http://$name.googlecode.com/files/$name-src-$version.tar.gz \
        qtscriptgenerator-gcc44.patch phonon.patch ) 

build() {
	cd $name-src-$version/generator
 	patch -Np1 -i $SRC/qtscriptgenerator-gcc44.patch
  # prepare plugins
	patch -Np2 -i $SRC/phonon.patch 
	qmake
	make
 	./generator --include-paths=/usr/include
  # build plugins
	cd ../qtbindings
	qmake
	make
  # move plugins to correct directory
	mkdir -p $PKG/usr/lib/qt/plugins/script
	mv $SRC/$name-src-$version/plugins/script/* $PKG/usr/lib/qt/plugins/script/
}