diff options
Diffstat (limited to 'development/cosmocc/cosmocc.SlackBuild')
-rw-r--r-- | development/cosmocc/cosmocc.SlackBuild | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/development/cosmocc/cosmocc.SlackBuild b/development/cosmocc/cosmocc.SlackBuild index bfb1b259ca59a..b8f92c53b3d38 100644 --- a/development/cosmocc/cosmocc.SlackBuild +++ b/development/cosmocc/cosmocc.SlackBuild @@ -7,6 +7,11 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20240312 bkw: +# - update for v3.3.2. +# - use wrapper script rather than symlinks for /usr/bin/* since the +# symlinks didn't actually work. + # 20240219 bkw: BUILD=3 # - Take over maintenance. # - Relicense as WTFPL. @@ -16,8 +21,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cosmocc -VERSION=${VERSION:-3.2.4} -BUILD=${BUILD:-3} +VERSION=${VERSION:-3.3.2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -58,15 +63,19 @@ for i in bin include x86_64-linux-cosmo aarch64-linux-cosmo libexec; do mv $i $PKG/opt/$PRGNAM done -$(cd $PKG/usr/bin/; - for i in mktemper march-native zipcopy apelink cosmocross cosmoar \ - assimilate zipobj cosmoaddr2line cosmocc mkdeps cosmoc++ \ - cosmoinstall pecheck; do - ln -s ../../opt/$PRGNAM/bin/$i $i; - done;); +install -oroot -groot -m0755 $CWD/wrapper.sh $PKG/opt/$PRGNAM/bin/wrapper.sh + +# 20240312 bkw: can't use symlinks for these, or else we get: +# /usr/bin/cosmocc: line 327: /usr/bin/x86_64-linux-cosmo-gcc: No such file or directory +for i in mktemper march-native zipcopy apelink cosmocross cosmoar \ + assimilate zipobj cosmoaddr2line cosmocc mkdeps cosmoc++ \ + cosmoinstall pecheck +do + ln -s ../../opt/$PRGNAM/bin/wrapper.sh $PKG/usr/bin/$i +done # remove empty directories: -rmdir $PKG/opt/cosmocc/libexec/gcc/{x86_64,aarch64}-linux-cosmo/11.2.0/install-tools +rmdir $PKG/opt/cosmocc/libexec/gcc/{x86_64,aarch64}-linux-cosmo/*/install-tools || true PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKGDOC |