]> git.t-rg.ws Git - slackbuilds.git/commitdiff
Removed unnecessary comments
authorfsLeg <fsleg@t-rg.ws>
Tue, 15 Jul 2025 19:21:25 +0000 (22:21 +0300)
committerfsLeg <fsleg@t-rg.ws>
Tue, 15 Jul 2025 19:21:25 +0000 (22:21 +0300)
21 files changed:
amneziawg-go/amneziawg-go.SlackBuild
amneziawg-kernel/amneziawg-kernel.SlackBuild
amneziawg-tools/amneziawg-tools.SlackBuild
buf/buf.SlackBuild
dart-sass/dart-sass.SlackBuild
dart-sdk/dart-sdk.SlackBuild
dumptorrent/dumptorrent.SlackBuild
fdpowermon/fdpowermon.SlackBuild
gxkb/gxkb.SlackBuild
helix/helix.SlackBuild
popcorntime/popcorntime.SlackBuild
pyotherside/pyotherside.SlackBuild
pyscard/pyscard.SlackBuild
python-fido2/python-fido2.SlackBuild
saflashplayer-legacy/saflashplayer-legacy.SlackBuild
saflashplayer/saflashplayer.SlackBuild
shadowsocks-rust/shadowsocks-rust.SlackBuild
vips/vips.SlackBuild
yubikey-manager-qt/yubikey-manager-qt.SlackBuild
yubikey-manager/yubikey-manager.SlackBuild
yubioath-desktop/yubioath-desktop.SlackBuild

index 62e4652e4ba6d37d1ab35fca5cf7e3f06fd50b13..81951ef02d07f8c4f056fd7aa045a694f223d018 100644 (file)
@@ -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
index c01b1ee47d82dabd67fd818e58e8a75f78eb8d10..730399bffff97996d81ecbec71b97d1863210698 100644 (file)
@@ -43,9 +43,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-$PKGVER-$ARCH-$BUILD$TAG.$PKGTYPE"
   exit 0
@@ -95,11 +92,11 @@ cd ..
 
 find $PKG -name "*.ko" -exec strip --strip-debug "{}" \;
 
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$PKGVER
 cp -a \
   COPYING README.md \
-  $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+  $PKG/usr/doc/$PRGNAM-$PKGVER
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKGVER/$PRGNAM.SlackBuild
 
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
index 3a9cfff344f1c7ce5b834610612d51f3e812a8f8..9e1e2196c1243f0f0bf25c888a244aaefabe6ef2 100644 (file)
@@ -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
@@ -99,7 +96,6 @@ make install
 
 cd ..
 
-# 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
 
index 8db95c8e23421bb6242ac25ad9e6c7e3d7cf1cce..e316ae80c80a944cc458907f77b3e5bed1b0a71b 100644 (file)
@@ -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
@@ -93,14 +90,12 @@ go build -v \
   -o build \
   ./cmd/...
 
-# generate manpages
 mkdir -p build/manpages
 ./build/buf manpages build/manpages
 
 install -Dm755 -t "$PKG/usr/bin" build/{buf,protoc-gen-buf-lint,protoc-gen-buf-breaking}
 install -Dm644 -t "$PKG/usr/man/man1" build/manpages/*
 
-# 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
 
@@ -113,10 +108,8 @@ cp -a \
   $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
-# Make the package
 cd $PKG
 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
index 3710e620e379cf08f32771394bfa6da6feaa38a2..19e15f2ab71b824e3feedc06e52a39ce608d5385 100644 (file)
@@ -39,9 +39,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
@@ -101,7 +98,6 @@ EOF
 chmod +x $PKG/usr/bin/sass
 install -Dm644 -t $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/ build/sass.snapshot-$ARCH
 
-# Copy program license into the package
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -a README.md AUTHORS CHANGELOG.md CONTRIBUTING.md LICENSE \
   $PKG/usr/doc/$PRGNAM-$VERSION/
index 3e2dc23ed04c4ae86e40b80a5877d1a5f60deb8f..ea1ae36ee96a29f31d10cadd35194111f415bee1 100644 (file)
@@ -39,10 +39,6 @@ if [ -z "$ARCH" ]; then
   esac
 fi
 
-echo "arch $ARCH"
-# 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
index b5bb33bd31f9f5c5bf3ae1107c81fa0637e7a554..6f8d7bb7a2e88492e49bb054f5447dc925f16384 100644 (file)
@@ -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
@@ -86,14 +83,10 @@ cmake \
 make
 cd ..
 
-# There's no 'install' target, so we just copy the binaries to a correct
-# location
-
 mkdir -p $PKG/usr/bin
 install -Dm755 build/dumptorrent $PKG/usr/bin/
 install -Dm755 build/scrapec $PKG/usr/bin/
 
-# Strip binaries
 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
 
@@ -101,10 +94,8 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
-# Make the package
 cd $PKG
 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
index 9724209f52463b5ee9e5bffcaa60eefe26a4f35f..2976202277608b5a3d61d9a9ce4396537219be42 100644 (file)
@@ -30,12 +30,8 @@ BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 PKGTYPE=${PKGTYPE:-tgz}
 
-# It's a Perl script, so arch doesn't matter
 ARCH="noarch"
 
-# 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
@@ -45,8 +41,6 @@ TMP=${TMP:-/tmp/SBo}
 PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
 
-# This is just a repackaging of a script, no compilation is needed
-
 set -e
 
 rm -rf $PKG
@@ -66,17 +60,14 @@ find -L $PKG \
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
-# Copy program documentation and the SlackBuild into the package
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
 cp -a debian/copyright debian/changelog README.md $PKG/usr/doc/$PRGNAM-$VERSION/
 cp -a theme.pl $PKG/usr/doc/$PRGNAM-$VERSION/examples/
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Create and package the man page
 mkdir -p $PKG/usr/man/man1
 pod2man < fdpowermon | gzip -9 -c > $PKG/usr/man/man1/fdpowermon.1.gz
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
index 2a96cafc6ea45dbaf32c5c70470b212e915794f3..c4f2d389b5f90aa2ffe151a6d9608b39c4321954 100644 (file)
@@ -39,9 +39,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
index a0c0c4e2b0ef0d135c8e999088049253e602493d..a52d6e1d70cbf7a7024361a5b1ae4f96caaf2df9 100644 (file)
@@ -44,9 +44,6 @@ if [ -z "$ARCH" ]; then
   fi
 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
@@ -85,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"
@@ -93,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" \
@@ -101,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 \
@@ -124,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}
index 29affe9134748f117b254a6315ac436bd9fc738b..f3f3c2fda2fecbcb03c080b282acf05442e83c7b 100644 (file)
@@ -39,9 +39,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
@@ -80,7 +77,6 @@ rm -rf $TARNAM-$VERSION
 tar xvf $CWD/$TARNAM-$VERSION.tar.gz
 cd $TARNAM-$VERSION
 
-# Unpack vendored sources
 tar xfv $CWD/$PRGNAM-$VERSION-vendored-sources.tar
 mkdir -p cache/$NWVER-sdk
 tar xf $CWD/nwjs-sdk-v$NWVER-linux-$PLATFORM.tar.gz -C cache/$NWVER-sdk
@@ -112,17 +108,14 @@ YARN_CACHE_FOLDER="./cache" \
 npm_config_cache="./cache" \
 yarn build --no-update-notifier
 
-# Fix permissions
 find build/Popcorn-Time/linux$BITS -type f -perm -u+r -exec chmod a+r {} \;
 find build/Popcorn-Time/linux$BITS -type f -perm -u+x -exec chmod a+x {} \;
 find build/Popcorn-Time/linux$BITS -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
   | cut -f 1 -d : | xargs chmod a+x 2> /dev/null || true
 
-# Move binaries
 mkdir -p $PKG/opt
 cp -aR build/Popcorn-Time/linux$BITS $PKG/opt/$PRGNAM
 
-# 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
 
@@ -130,7 +123,6 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -a build/Popcorn-Time/linux$BITS/{CHANGELOG.md,LICENSE.txt,README.md,credits.html} $PKG/usr/doc/$PRGNAM-$VERSION/
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Copy .desktop file and make icons for it
 mkdir -p $PKG/usr/share/applications
 install -Dm644 dist/linux/appimage/Popcorn-Time.desktop $PKG/usr/share/applications/
 for geometry in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256; do
@@ -138,11 +130,9 @@ for geometry in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 256x256; do
   magick dist/linux/appimage/Popcorn-Time.png -resize $geometry $PKG/usr/share/icons/hicolor/$geometry/apps/Popcorn-Time.png
 done
 
-# Make a symlink
 mkdir -p $PKG/usr/bin
 ln -s /opt/$PRGNAM/Popcorn-Time $PKG/usr/bin/
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 cat $CWD/doinst.sh > $PKG/install/doinst.sh
index 6ad24ef7598c8e6b894f918802bccc2c4408c146..9cf9f16e4f0b0858ec2017bdf50186c14b217055 100644 (file)
@@ -37,10 +37,6 @@ if [ -z "$ARCH" ]; then
        *) ARCH=$( uname -m ) ;;
   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
@@ -84,13 +80,11 @@ make
 make install INSTALL_ROOT=$PKG
 rm -rf $PKG/usr/tests
 
-# 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
 
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 
-# Build additional documentation
 if [ "${DOCS:-no}" != "no" ]; then
   cd docs
   make html
@@ -103,10 +97,8 @@ cp -aR \
   $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
-# Make the package
 cd $PKG
 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
index 70026bff19e836ec5101cc4aeb42db4a004d9f66..b449eecdc57fc6c21e6053008acf59c5b0c16a89 100644 (file)
@@ -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
@@ -67,13 +64,11 @@ find -L . \
 
 python3 setup.py install --root=$PKG
 
-# 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
 
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 
-# Build additional documentation
 if [ "${DOCS:-no}" != "no" ]; then
   sphinx-build src/smartcard/doc $PKG/usr/doc/$PRGNAM-$VERSION/html
   rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/html/{.buildinfo,.doctrees,objects.inv}
@@ -84,10 +79,8 @@ cp -aR \
   $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
-# Make the package
 cd $PKG
 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
index 24da58876be491247a03640d830b993694114773..0b32b7be9ae0a446b19276428e8d9871829c5d5f 100644 (file)
@@ -39,9 +39,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
@@ -69,7 +66,6 @@ find -L . \
 python3 -m build --wheel --no-isolation
 python3 -m installer --destdir "$PKG" dist/*.whl
 
-# 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
 
@@ -79,17 +75,13 @@ cp -aR \
   $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Fix permissions
 chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/examples/server/poetry.lock
 
-# Copy udev rules
 mkdir -p $PKG/etc/udev/rules.d
 cat $CWD/70-u2f.rules > $PKG/etc/udev/rules.d/70-u2f.rules
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
-# Make the package
 cd $PKG
 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
index 7c20b92edda294c6c6cbe8268f3ef8e00ec319fd..fd8c545eb8d8b56fa604b221e08c576590b7892d 100644 (file)
@@ -37,10 +37,6 @@ if [ -z "$ARCH" ]; then
        *) ARCH=$( uname -m ) ;;
   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
@@ -60,8 +56,6 @@ TMP=${TMP:-/tmp/SBo}
 PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
 
-# saflashplayer is a standalone static binary, so no compilation is needed
-
 set -e
 
 rm -rf $PKG
@@ -73,8 +67,6 @@ mkdir -p $PKG/usr/bin $PKG/usr/share/applications
 install flashplayer $PKG/usr/bin/saflashplayer
 cp -a $CWD/saflashplayer-legacy.desktop $PKG/usr/share/applications/com.adobe.flashplayer.desktop
 
-# Stripping the binary causes it to segfault
-
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -aR LGPL $PKG/usr/doc/$PRGNAM-$VERSION/
 
index cc270e8ab52b800cae79ff63172a702f650cd043..055996cd0508ead34698a46ca3f2f04a0e6a5400 100644 (file)
@@ -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
@@ -60,8 +57,6 @@ TMP=${TMP:-/tmp/SBo}
 PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
 
-# saflashplayer is a standalone static binary, so no compilation is needed
-
 set -e
 
 rm -rf $PKG
@@ -73,8 +68,6 @@ mkdir -p $PKG/usr/bin $PKG/usr/share/applications
 mv flashplayer $PKG/usr/bin/saflashplayer
 cp -a $CWD/saflashplayer.desktop $PKG/usr/share/applications/com.adobe.flashplayer.desktop
 
-# Stripping the binary causes it to segfault
-
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -aR LGPL license.pdf $PKG/usr/doc/$PRGNAM-$VERSION/
 
index 5b644fddfb40b568950a0806253e8e1abb743343..48e2ba3654db04cd052b6332664253cb3920b99a 100644 (file)
@@ -44,9 +44,6 @@ if [ -z "$ARCH" ]; then
   fi
 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
@@ -81,7 +78,6 @@ cd $TMP
 rm -rf $PRGNAM-$VERSION
 tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
 
-# Unpack vendored sources to build offline
 tar xvf $CWD/$PRGNAM-$VERSION-vendored-sources.tar.xz
 
 cd $PRGNAM-$VERSION
@@ -92,7 +88,6 @@ find -L . \
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
-# 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"
@@ -100,7 +95,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" \
@@ -108,11 +102,9 @@ CARGO_HOME=".cargo" \
 cargo build --frozen --release
 make install DESTDIR=$PKG TARGET=release PREFIX=/usr/bin
 
-# 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 -aR \
   LICENSE README.md examples/ \
index 32e10a8591a1dc31a6581f672818d2b434c7872f..687f782832d64ea862abcfc14d1a06b3ba3ffa9b 100644 (file)
@@ -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
index db6b1c48dd03abecbe955734d37a91cef7fe9a13..0ca4b01bef83fac8ad4f61d10c09499b7f609911 100644 (file)
@@ -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
@@ -87,11 +84,9 @@ CXXFLAGS="$SLKCFLAGS" \
 make
 make install INSTALL_ROOT=$PKG
 
-# 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 desktop-related files
 mkdir -p $PKG/usr/share/pixmaps
 cp -a resources/icons/ykman.png $PKG/usr/share/pixmaps
 mkdir -p $PKG/usr/share/metainfo/
@@ -105,11 +100,9 @@ cp -a \
   $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 cat $CWD/doinst.sh > $PKG/install/doinst.sh
 
-# Make the package
 cd $PKG
 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
index bf02d45904e8392c7b3117e20bdd156d7c82fece..72c3a10d8c6394f3ea33ccd6246df1a715794594 100644 (file)
@@ -39,9 +39,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
@@ -69,11 +66,9 @@ find -L . \
 python3 -m build --wheel --no-isolation
 python3 -m installer --destdir "$PKG" dist/*.whl
 
-# 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 and compress man pages
 mkdir -p $PKG/usr/man
 cp -aR man $PKG/usr/man/man1
 find $PKG/usr/man -type f -exec gzip -9 {} \;
@@ -85,10 +80,8 @@ cp -a \
   $PKG/usr/doc/$PRGNAM-$VERSION
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 
-# Make the package
 cd $PKG
 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
index aec2c2c4ee04012ffaadf089ad5d8195ea18cfe1..c4b733e486e680b9a2cdf8995ba419364f3a988a 100644 (file)
@@ -49,9 +49,6 @@ if [ "x86_64" != "${ARCH}" ]; then
   exit 1
 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
@@ -61,8 +58,6 @@ TMP=${TMP:-/tmp/SBo}
 PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
 
-# This is just a repackaging of a pre-built binary, no compilation is needed
-
 set -e
 
 rm -rf $PKG
@@ -96,12 +91,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
 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 program license into the package
 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 install -m 644 README.adoc $PKG/usr/doc/$PRGNAM-$VERSION/
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
-# Copy the slack-desc into ./install
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 cat $CWD/doinst.sh > $PKG/install/doinst.sh