1 # Contributor: Benedikt "linopolus" Mueller <linopolus@gmx.com>
2 # changed from lazarus-svn 'cause of a new svn path, out of date
3 # Modified by Stanislav "PoZiTPoH" Nikitin <pztrn@pozitpoh.is-a-geek.org>
7 pkgdesc="Delphi-like IDE for FreePascal"
9 url="http://www.lazarus.freepascal.org/"
10 license=('GPL2' 'MPL' 'custom:LGPL')
11 depends=('fpc' 'fpc-src' 'gdk-pixbuf')
12 makedepends=('imagemagick' 'subversion')
15 options=('!emptydirs' '!makeflags')
19 _svntrunk=http://svn.freepascal.org/svn/lazarus/trunk/
23 mkdir -p ${startdir}/pkg/usr/share/pixmaps/
26 if [ -d $_svnmod/.svn ]; then
27 (cd $_svnmod && svn up -r $pkgver)
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf $startdir/src/$_svnmod-build
36 cp -r $_svnmod $_svnmod-build
38 find -type d -name .svn -print0 | xargs -0 /bin/rm -rf > /dev/null 2>&1
44 # don't 'make examples' or you'll end up with a 100MB pkg
45 make FPC=/usr/bin/fpc LCL_PLATFORM=gtk2 clean all || return 1
46 # skip the 'make install' mess completely and do everything manually
47 mkdir -p ${startdir}/pkg/usr/lib/lazarus ${startdir}/pkg/usr/bin
49 cp -R . ${startdir}/pkg/usr/lib/lazarus
50 ln -s /usr/lib/lazarus/lazarus ${startdir}/pkg/usr/bin/lazarus
51 ln -s /usr/lib/lazarus/startlazarus ${startdir}/pkg/usr/bin/startlazarus
52 ln -s /usr/lib/lazarus/lazbuild ${startdir}/pkg/usr/bin/lazbuild
53 install -Dm644 install/man/man1/lazbuild.1 ${startdir}/pkg/usr/share/man/man1/lazbuild.1
54 # make 'desktop-file-validate' happy and fix missing .png icon
55 sed -e 's|\(Categories\).*|\1=IDE;Development;|' -i install/lazarus.desktop
56 install -Dm644 install/lazarus.desktop ${startdir}/pkg/usr/share/applications/lazarus.desktop
57 #convert images/mainicon.ico ${startdir}/pkg/usr/share/pixmaps/lazarus.png
58 rm -r ${startdir}/pkg/usr/lib/lazarus/install
59 # license files: /usr/lib/lazarus/COPYING*
60 install -D -m644 COPYING.modifiedLGPL.txt $startdir/pkg/usr/share/licenses/$pkgname/COPYING.modifiedLGPL.txt