aboutsummaryrefslogtreecommitdiff
path: root/development/helix/helix.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/helix/helix.SlackBuild')
-rw-r--r--development/helix/helix.SlackBuild8
1 files changed, 1 insertions, 7 deletions
diff --git a/development/helix/helix.SlackBuild b/development/helix/helix.SlackBuild
index 44dbed1018..f40c420e54 100644
--- a/development/helix/helix.SlackBuild
+++ b/development/helix/helix.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=helix
-VERSION=${VERSION:-25.01.1}
+VERSION=${VERSION:-25.07.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -82,7 +82,6 @@ chown -R root:root .
# Grammar sources are bundled, no need to fetch them again
patch -p1 < $CWD/disable-grammar-fetching.patch
-# Use rust-opt instead of system rust if it's available
export PATH="/opt/rust/bin:$PATH"
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX"
@@ -90,7 +89,6 @@ else
export LD_LIBRARY_PATH="/opt/rust/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH"
fi
-# Compile the binaries
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
RUSTFLAGS="-C target-cpu=native" \
@@ -98,7 +96,6 @@ CARGO_HOME=".cargo" \
HELIX_DEFAULT_RUNTIME=/usr/lib$LIBDIRSUFFIX/$PRGNAM \
cargo build --frozen --profile opt
-# Package everything
mkdir -p $PKG/usr/bin \
$PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM \
$PKG/usr/share/bash-completion/completions \
@@ -121,18 +118,15 @@ for geometry in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256; do
magick contrib/helix.png -resize $geometry $PKG/usr/share/icons/hicolor/$geometry/apps/$PRGNAM.png
done
-# Strip binaries and libraries
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-# Copy available documentation
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LICENSE README.md CHANGELOG.md docs/*.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Build additional documentation
if [ "${DOCS:-no}" != "no" ]; then
mdbook build --dest-dir $PKG/usr/doc/$PRGNAM-$VERSION/html book
rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/html/{CNAME,404.html,.nojekyll,generated}