mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
development/smlnj: Amend. Patch misalign.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
adc489c038
commit
4f9ce8bef4
3 changed files with 13 additions and 5 deletions
10
development/smlnj/_arch-n-opsys.patch
Normal file
10
development/smlnj/_arch-n-opsys.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- _arch-n-opsys 2015-07-09 04:54:20.000000000 -0300
|
||||
+++ _arch-n-opsys.new 2024-05-21 00:47:47.253431563 -0300
|
||||
@@ -66,6 +66,7 @@
|
||||
2.6.*) ;;
|
||||
3.*) ;;
|
||||
4.*) ;;
|
||||
+ 5.*) ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
;;
|
|
@ -7,5 +7,3 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
|||
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
chmod +x /etc/profile.d/smlnj.sh
|
||||
|
|
|
@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
|
@ -76,6 +73,8 @@ tar xvf $CWD/config.tgz
|
|||
# Confuses install.sh
|
||||
unset SMLNJ_HOME
|
||||
|
||||
patch $TMP/$PRGNAM/config/_arch-n-opsys < $CWD/_arch-n-opsys.patch
|
||||
|
||||
config/install.sh
|
||||
|
||||
mkdir -p "$PKG/usr/lib/smlnj"
|
||||
|
@ -83,6 +82,7 @@ cp -R "$TMP/$PRGNAM/"{bin,lib} "$PKG/usr/lib/smlnj"
|
|||
|
||||
mkdir -p "$PKG/etc/profile.d"
|
||||
cp "$CWD/smlnj.sh" "$PKG/etc/profile.d/smlnj.sh"
|
||||
chmod +x $PKG/etc/profile.d/smlnj.sh
|
||||
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
|
|
Loading…
Reference in a new issue