-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathtemplate
More file actions
64 lines (54 loc) · 2.25 KB
/
template
File metadata and controls
64 lines (54 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Template file for 'lazarus'
pkgname=lazarus
version=4.6
revision=1
# For adding a revision suffix to version on the source tarball file
_version_revision_suffix="-0"
archs="x86_64 i686"
hostmakedepends="fpc rsync"
makedepends="fpc-src qt5pas-devel"
depends="fpc-src fpc gdb perl qt5pas-devel"
short_desc="Delphi-like IDE for FreePascal"
maintainer="Orphaned <orphan@voidlinux.org>"
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}${_version_revision_suffix}.tar.gz"
checksum=3071ae180ffa3c262169a63b6f2d57daa6f1febe3c84ae8d9f903c086c1a025a
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
vinstall install/lazarus.desktop 644 usr/share/applications
vinstall images/ide_icon48x48.png 644 usr/share/pixmaps lazarus.png
}