1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
7 pkgdesc="A dynamic Python binding for the Qt framework to embed Python code into C++ Qt applications."
9 url="http://pythonqt.sourceforge.net/"
11 depends=('qt' 'python2')
12 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$_pkg-$pkgver/$_pkg$pkgver.zip")
13 md5sums=('4a9a639ed88fe2bfede08649c100da6a')
16 cd "$srcdir/$_pkg$pkgver"
18 # set python version to 2.7
19 sed -i "s|2.6|2.7|" build/python.prf
21 # remove cocoa references
22 sed -i "s| *Cocoa.*,||" \
23 generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h
30 cd "$srcdir/$_pkg$pkgver"
33 install -d "$pkgdir/usr/bin"
34 install -Dm755 lib/{CPP*,Py*} "$pkgdir/usr/bin"
37 install -d "$pkgdir/usr/lib"
38 cp -a lib/lib* "$pkgdir/usr/lib"
41 install -d "$pkgdir/usr/include/$_pkg/gui"
42 install -Dm644 src/$_pkg*.h "$pkgdir/usr/include/$_pkg"
43 install -Dm644 src/gui/*.h "$pkgdir/usr/include/$_pkg/gui"
44 install -Dm644 extensions/PythonQt_QtAll/PythonQt_QtAll.h \
45 "$pkgdir/usr/include/$_pkg"
48 install -d "$pkgdir/usr/share/doc/$pkgname"
49 install -Dm644 doxygen/{header.html,PythonQt.jpg,stylesheet.css} \
50 "$pkgdir/usr/share/doc/$pkgname"
53 # vim:set ts=2 sw=2 et: