updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / edyuk-svn / PKGBUILD
bloba8acdddc775f096d3d728210ee9b2227864d8038
1 # Contributor: Sphax <zecmerquise@gmail.com>
2 pkgname=edyuk-svn
3 pkgver=657
4 pkgrel=1
5 pkgdesc="Fully-featured Qt4 IDE"
6 arch=(i686 x86_64)
7 url="http://www.edyuk.org"
8 license="GPL"
9 depends=('qt')
10 makedepends=('gcc>=4.*')
11 conflicts=('edyuk')
12 source=()
13 md5sums=()
15 _svntrunk=http://edyuk.svn.sf.net/svnroot/edyuk/trunk
16 _svnmod=edyuk
18 build()
20         cd $startdir/src/
22         if [ -d $_svnmod/.svn ]; then
23                 (cd $_svnmod && svn up)
24         else
25                 svn co $_svntrunk --config-dir ./ $_svnmod
26         fi
28         msg "SVN checkout done"
30         if [ -d $startdir/src/$_svnmod-build ]; then
31                 rm -r $startdir/src/$_svnmod-build
32         fi
34         cp -r $startdir/src/$_svnmod $startdir/src/$_svnmod-build
35         cd $startdir/src/$_svnmod-build
37         # Fix path to Qt mkspecs directory
38         # Fix directory for icons on KDE4
39         patch -Np0 -i $startdir/installpri.patch || return 1
41         msg "Patching done"
43         qmake
44         make || return 1
45         # second run of qmake, needed for lib directory to be installed correctly
46         qmake
47         make INSTALL_ROOT=$startdir/pkg install
49         # All libs files are installed as binary, but only libedyuk.so.1.0.0
50         # is supposed to be a binary, the others are supposed to be symlinks
51         # Fix this now because of ldconfig reporting an error when installing
52         # with pacman
53         cd $startdir/pkg/usr/lib
54         rm libedyuk.{so,so.1,so.1.0}
55         ln -s libedyuk.so.1.0.0 libedyuk.so
56         ln -s libedyuk.so.1.0.0 libedyuk.so.1
57         ln -s libedyuk.so.1.0.0 libedyuk.so.1.0