summaryrefslogtreecommitdiff
path: root/manualPorts/lazarus/Pkgfile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-02-13 11:10:23 +0100
committerErich Eckner <git@eckner.net>2022-02-13 11:10:23 +0100
commit3ee52b225b73dd921f468b27565efbd0e6e24910 (patch)
treea44f1b2a8b1960c2cc04fc23ebda82d9b7e15dbc /manualPorts/lazarus/Pkgfile
parent0b2739dff736d534e6296aaa5b62e30a2e4437af (diff)
downloadcrux-ports-3ee52b225b73dd921f468b27565efbd0e6e24910.tar.xz
lazarus: 2.0.12-1 -> 2.2.0-1
Diffstat (limited to 'manualPorts/lazarus/Pkgfile')
-rw-r--r--manualPorts/lazarus/Pkgfile35
1 files changed, 23 insertions, 12 deletions
diff --git a/manualPorts/lazarus/Pkgfile b/manualPorts/lazarus/Pkgfile
index c99286b..eb90834 100644
--- a/manualPorts/lazarus/Pkgfile
+++ b/manualPorts/lazarus/Pkgfile
@@ -4,21 +4,32 @@
# Depends on: fpc fpc-src gdb
name=lazarus
-version=2.0.12
+version=2.2.0
release=1
-source=(https://downloads.sourceforge.net/project/$name/Lazarus%20Zip%20_%20GZip/Lazarus%20$version/$name-$version.tar.gz)
+source=(https://downloads.sourceforge.net/project/$name/Lazarus%20Zip%20_%20GZip/Lazarus%20$version/$name-$version-0.tar.gz)
build() {
cd $name
MAKEFLAGS="$(echo "$MAKEFLAGS" | sed "s/-j[[:digit:]]\+\s\?//")" make LCL_PLATFORM=gtk2 bigide
- make install PREFIX=$PKG/usr
- find $PKG \
- \( \
- -name "*README*" -o \
- -name "*BUGS*" -o \
- -name "*TODO*" -o \
- -name "*COPYING*" -o \
- -name "*INSTALL*" -o \
- -name "*ChangeLog*" \
- \) -delete
+ mkdir -p "$PKG"/usr/lib/lazarus "$PKG"/usr/bin "$PKG"/usr/share/man/man1 "$PKG"/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" \
+ . "$PKG"/usr/lib/lazarus
+ ln -s /usr/lib/lazarus/lazbuild "$PKG"/usr/bin/lazbuild
+ cp -R install/man/man1/* "$PKG"/usr/share/man/man1/
+ mv "$PKG"/usr/lib/lazarus/docs "$PKG"/usr/share/doc/lazarus
+ mkdir -p "$PKG"/usr/lib/lazarus/docs
+ ln -s /usr/share/doc/lazarus/chm "$PKG"/usr/lib/lazarus/docs/html
+ ln -s /usr/share/doc/lazarus/lazdoc.css "$PKG"/usr/lib/lazarus/docs/lazdoc.css
+
+ rm -r "$PKG"/usr/lib/lazarus/install
}