updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pythonqt / PKGBUILD
blobfe9d091ef1600984ef774ab60ec0f54147c26b4c
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=PythonQt
4 pkgname=pythonqt
5 pkgver=2.0.1
6 pkgrel=1
7 pkgdesc="A dynamic Python binding for the Qt framework to embed Python code into C++ Qt applications."
8 arch=(i686 x86_64)
9 url="http://pythonqt.sourceforge.net/"
10 license=('LGPL')
11 depends=('qt' 'python2')
12 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$_pkg-$pkgver/$_pkg$pkgver.zip")
13 md5sums=('4a9a639ed88fe2bfede08649c100da6a')
15 build() {
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
25   qmake
26   make
29 package() {
30   cd "$srcdir/$_pkg$pkgver"
32   # bins
33   install -d "$pkgdir/usr/bin"
34   install -Dm755 lib/{CPP*,Py*} "$pkgdir/usr/bin"
36   # libs
37   install -d "$pkgdir/usr/lib"
38   cp -a lib/lib* "$pkgdir/usr/lib"
40   # headers
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"
47   # docs
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: