# $Id$ # Maintainer: BlackIkeEagle # Contributor: Fabien Wang pkgname=qt4pas pkgver=2.5 pkgrel=8 pkgdesc="Free Pascal Qt4 Binding Library" arch=('i686' 'x86_64') url="http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html" license=('LGPL') depends=('qt4' 'xdg-utils') source=( 'http://users.telenet.be/Jan.Van.hijfte/qtforfpc/V2.5/qt4pas-V2.5_Qt4.5.3.tar.gz' 'qtwebkit.patch' ) sha256sums=('825423db80da4df5c21816c0392b3394cddfe2f3293dfd08ace84941726affea' 'af1721fbf6706931d0b82dd28b3540f56a65e1585b75873c4ac9eaddecf9c921') prepare() { cd "qt4pas-V2.5_Qt4.5.3/" patch -p0 -i "$srcdir/qtwebkit.patch" } build() { cd "qt4pas-V2.5_Qt4.5.3/" qmake-qt4 -query qmake-qt4 make } package() { cd "qt4pas-V2.5_Qt4.5.3/" INSTALL_ROOT="$pkgdir" make install pushd "$pkgdir/usr/lib" for intflink in 'libqt4intf.so' 'libqt4intf.so.5' 'libqt4intf.so.5.2' 'libqt4intf.so.5.2.1' 'libqt4intf.so.5.2.5'; do ln -s libQt4Pas.so.5.2.5 $intflink done popd }