diff options
author | Erich Eckner <git@eckner.net> | 2022-03-10 19:07:44 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-03-10 19:07:44 +0100 |
commit | 8e7a20ee258ee95c2a4afad37aa6ed44845b1efb (patch) | |
tree | 811fbe0773c06760799bd55b65318f25f2a0ff3e /manualPorts/lazarus/Pkgfile | |
parent | 1db423a433961f4ca2f390e81e90db9d8e1c651f (diff) | |
download | crux-ports-8e7a20ee258ee95c2a4afad37aa6ed44845b1efb.tar.xz |
lazarus: create symlinks for all executables
Diffstat (limited to 'manualPorts/lazarus/Pkgfile')
-rw-r--r-- | manualPorts/lazarus/Pkgfile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/manualPorts/lazarus/Pkgfile b/manualPorts/lazarus/Pkgfile index eb90834..ccd88a5 100644 --- a/manualPorts/lazarus/Pkgfile +++ b/manualPorts/lazarus/Pkgfile @@ -5,7 +5,7 @@ name=lazarus version=2.2.0 -release=1 +release=2 source=(https://downloads.sourceforge.net/project/$name/Lazarus%20Zip%20_%20GZip/Lazarus%20$version/$name-$version-0.tar.gz) build() { @@ -24,7 +24,11 @@ build() { --exclude="debian" --exclude="COPYING*" \ --exclude="*.app" --exclude="tools/install" \ . "$PKG"/usr/lib/lazarus - ln -s /usr/lib/lazarus/lazbuild "$PKG"/usr/bin/lazbuild + for s in "$PKG"/usr/bin/*; do + [ ! -d "$s" ] || continue + [ -x "$s" ] || continue + ln -s "../lib/lazarus/${s##*/}" "${PKG}/usr/bin/${s##*/}" + done 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 |