2019-02-18 18:45:36 +01:00
|
|
|
# Template file for 'lazarus'
|
|
|
|
pkgname=lazarus
|
2019-04-16 15:45:52 +02:00
|
|
|
version=2.0.2
|
2019-02-18 18:45:36 +01:00
|
|
|
revision=1
|
|
|
|
archs="x86_64 i686"
|
|
|
|
wrksrc=lazarus
|
|
|
|
hostmakedepends="fpc rsync"
|
|
|
|
makedepends="fpc-src qt5pas-devel"
|
|
|
|
depends="fpc-src fpc gdb perl"
|
|
|
|
short_desc="Delphi-like IDE for FreePascal"
|
|
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
|
|
license="GPL-2.0-or-later, MPL-2.0, LGPL-2.0-or-later"
|
|
|
|
homepage="http://www.lazarus.freepascal.org"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20${version}/lazarus-${version}.tar.gz"
|
2019-04-16 15:45:52 +02:00
|
|
|
checksum=e9d07f176e63c6ff7cf693a135ee66135c147ba398f67b8c6fe892c726f6a476
|
2019-02-18 18:45:36 +01:00
|
|
|
nopie=yes
|
|
|
|
lib32disabled=yes
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make FPC=/usr/bin/fpc LCL_PLATFORM=qt5 bigide
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/lib/lazarus
|
|
|
|
vmkdir usr/bin
|
|
|
|
vmkdir usr/share/man/man1
|
|
|
|
vmkdir usr/share/doc
|
|
|
|
|
|
|
|
rsync -a \
|
|
|
|
--exclude="CVS" --exclude=".cvsignore" \
|
|
|
|
--exclude="*.ppw" --exclude="*.ppl" \
|
|
|
|
--exclude="*.ow" --exclude="*.a"\
|
|
|
|
--exclude="*.rst" --exclude=".#*" \
|
|
|
|
--exclude="*.~*" --exclude="*.bak" \
|
|
|
|
--exclude="*.orig" --exclude="*.rej" \
|
|
|
|
--exclude=".xvpics" \
|
|
|
|
--exclude="killme*" --exclude=".gdb_hist*" \
|
|
|
|
--exclude="debian" --exclude="COPYING*" \
|
|
|
|
--exclude="*.app" --exclude="tools/install" \
|
|
|
|
. "$DESTDIR"/usr/lib/lazarus
|
|
|
|
|
|
|
|
ln -rs ${DESTDIR}/usr/lib/lazarus/lazbuild ${DESTDIR}/usr/bin/lazbuild
|
|
|
|
|
|
|
|
cp -R install/man/man1/* ${DESTDIR}/usr/share/man/man1
|
|
|
|
|
|
|
|
mv ${DESTDIR}/usr/lib/lazarus/docs ${DESTDIR}/usr/share/doc/lazarus
|
|
|
|
|
|
|
|
vmkdir usr/lib/lazarus/docs
|
|
|
|
ln -rs ${DESTDIR}/usr/share/doc/lazarus/chm ${DESTDIR}/usr/lib/lazarus/docs/html
|
|
|
|
ln -rs ${DESTDIR}/usr/share/doc/lazarus/lazdoc.css ${DESTDIR}/usr/lib/lazarus/docs/lazdoc.css
|
|
|
|
|
|
|
|
rm -r ${DESTDIR}/usr/lib/lazarus/{install,test}
|
|
|
|
|
|
|
|
# Symlink binaries from usr/lib/lazarus to usr/bin
|
|
|
|
ln -rs ${DESTDIR}/usr/lib/lazarus/lazarus ${DESTDIR}/usr/bin/lazarus
|
|
|
|
ln -rs ${DESTDIR}/usr/lib/lazarus/startlazarus ${DESTDIR}/usr/bin/startlazarus
|
|
|
|
|
|
|
|
# make 'desktop-file-validate' happy and fix missing .png icon
|
|
|
|
vsed -e 's|\(Categories\).*|\1=IDE;Development;|' \
|
|
|
|
-i install/lazarus.desktop
|
2019-04-16 15:45:52 +02:00
|
|
|
vinstall install/lazarus.desktop 644 usr/share/applications
|
|
|
|
vinstall images/ide_icon48x48.png 644 usr/share/pixmaps lazarus.png
|
2019-02-18 18:45:36 +01:00
|
|
|
}
|
|
|
|
|