1 # Contributor: Aleš Katona <almindor@gmail.com>
2 # Contributor: Benedikt "linopolus" Mueller <linopolus@gmx.com>
3 # Contributor: Alessio 'Blaster' Biancalana <dottorblaster@gmail.com>
8 pkgdesc="Delphi-like IDE for FreePascal - Gtk2 interface"
10 url="http://www.lazarus.freepascal.org/"
11 license=('GPL2' 'MPL' 'custom:LGPL')
12 depends=('fpc>=2.2.4' 'fpc-src' 'gtk2>=2.10')
13 makedepends=('imagemagick' 'sed' 'wget')
16 options=('!emptydirs' '!makeflags')
17 source=(http://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%200.9.30.2/lazarus-0.9.30.2-src.tar.bz2/download)
18 md5sums=('0dcf54613c2f9d38a32d183431e2dfc9')
22 # don't 'make examples' or you'll end up with a 100MB pkg
23 make LCL_PLATFORM="gtk2" clean all || return 1
24 # skip the 'make install' mess completely and do everything manually
25 mkdir -p ${startdir}/pkg/usr/lib/lazarus ${startdir}/pkg/usr/bin ${startdir}/pkg/usr/share/pixmaps
27 cp -R . ${startdir}/pkg/usr/lib/lazarus
28 ln -s /usr/lib/lazarus/lazarus ${startdir}/pkg/usr/bin/lazarus
29 ln -s /usr/lib/lazarus/startlazarus ${startdir}/pkg/usr/bin/startlazarus
30 ln -s /usr/lib/lazarus/lazbuild ${startdir}/pkg/usr/bin/lazbuild
31 install -Dm644 install/man/man1/lazbuild.1 ${startdir}/pkg/usr/share/man/man1/lazbuild.1
32 # make 'desktop-file-validate' happy and fix missing .png icon
33 sed -e 's|\(Categories\).*|\1=IDE;Development;|' -i install/lazarus.desktop
34 install -Dm644 install/lazarus.desktop ${startdir}/pkg/usr/share/applications/lazarus.desktop
35 convert images/icons/lazarus.ico ${startdir}/pkg/usr/share/pixmaps/lazarus.png
36 mv ${startdir}/pkg/usr/share/pixmaps/lazarus-0.png ${startdir}/pkg/usr/share/pixmaps/lazarus.png
37 rm -r ${startdir}/pkg/usr/lib/lazarus/install
38 # license files: /usr/lib/lazarus/COPYING*
39 install -D -m644 COPYING.modifiedLGPL.txt $startdir/pkg/usr/share/licenses/$pkgname/COPYING.modifiedLGPL.txt