From: fsLeg Date: Tue, 15 Jul 2025 19:21:25 +0000 (+0300) Subject: Removed unnecessary comments X-Git-Url: https://git.t-rg.ws/?a=commitdiff_plain;h=eddeb7b262332087c4ce966b50029412889bb744;p=slackbuilds.git Removed unnecessary comments --- diff --git a/amneziawg-go/amneziawg-go.SlackBuild b/amneziawg-go/amneziawg-go.SlackBuild index 62e4652..81951ef 100644 --- a/amneziawg-go/amneziawg-go.SlackBuild +++ b/amneziawg-go/amneziawg-go.SlackBuild @@ -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 diff --git a/amneziawg-kernel/amneziawg-kernel.SlackBuild b/amneziawg-kernel/amneziawg-kernel.SlackBuild index c01b1ee..730399b 100644 --- a/amneziawg-kernel/amneziawg-kernel.SlackBuild +++ b/amneziawg-kernel/amneziawg-kernel.SlackBuild @@ -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 diff --git a/amneziawg-tools/amneziawg-tools.SlackBuild b/amneziawg-tools/amneziawg-tools.SlackBuild index 3a9cfff..9e1e219 100644 --- a/amneziawg-tools/amneziawg-tools.SlackBuild +++ b/amneziawg-tools/amneziawg-tools.SlackBuild @@ -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 diff --git a/buf/buf.SlackBuild b/buf/buf.SlackBuild index 8db95c8..e316ae8 100644 --- a/buf/buf.SlackBuild +++ b/buf/buf.SlackBuild @@ -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 diff --git a/dart-sass/dart-sass.SlackBuild b/dart-sass/dart-sass.SlackBuild index 3710e62..19e15f2 100644 --- a/dart-sass/dart-sass.SlackBuild +++ b/dart-sass/dart-sass.SlackBuild @@ -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/ diff --git a/dart-sdk/dart-sdk.SlackBuild b/dart-sdk/dart-sdk.SlackBuild index 3e2dc23..ea1ae36 100644 --- a/dart-sdk/dart-sdk.SlackBuild +++ b/dart-sdk/dart-sdk.SlackBuild @@ -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 diff --git a/dumptorrent/dumptorrent.SlackBuild b/dumptorrent/dumptorrent.SlackBuild index b5bb33b..6f8d7bb 100644 --- a/dumptorrent/dumptorrent.SlackBuild +++ b/dumptorrent/dumptorrent.SlackBuild @@ -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 diff --git a/fdpowermon/fdpowermon.SlackBuild b/fdpowermon/fdpowermon.SlackBuild index 9724209..2976202 100644 --- a/fdpowermon/fdpowermon.SlackBuild +++ b/fdpowermon/fdpowermon.SlackBuild @@ -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 diff --git a/gxkb/gxkb.SlackBuild b/gxkb/gxkb.SlackBuild index 2a96caf..c4f2d38 100644 --- a/gxkb/gxkb.SlackBuild +++ b/gxkb/gxkb.SlackBuild @@ -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 diff --git a/helix/helix.SlackBuild b/helix/helix.SlackBuild index a0c0c4e..a52d6e1 100644 --- a/helix/helix.SlackBuild +++ b/helix/helix.SlackBuild @@ -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} diff --git a/popcorntime/popcorntime.SlackBuild b/popcorntime/popcorntime.SlackBuild index 29affe9..f3f3c2f 100644 --- a/popcorntime/popcorntime.SlackBuild +++ b/popcorntime/popcorntime.SlackBuild @@ -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 diff --git a/pyotherside/pyotherside.SlackBuild b/pyotherside/pyotherside.SlackBuild index 6ad24ef..9cf9f16 100644 --- a/pyotherside/pyotherside.SlackBuild +++ b/pyotherside/pyotherside.SlackBuild @@ -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 diff --git a/pyscard/pyscard.SlackBuild b/pyscard/pyscard.SlackBuild index 70026bf..b449eec 100644 --- a/pyscard/pyscard.SlackBuild +++ b/pyscard/pyscard.SlackBuild @@ -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 diff --git a/python-fido2/python-fido2.SlackBuild b/python-fido2/python-fido2.SlackBuild index 24da588..0b32b7b 100644 --- a/python-fido2/python-fido2.SlackBuild +++ b/python-fido2/python-fido2.SlackBuild @@ -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 diff --git a/saflashplayer-legacy/saflashplayer-legacy.SlackBuild b/saflashplayer-legacy/saflashplayer-legacy.SlackBuild index 7c20b92..fd8c545 100644 --- a/saflashplayer-legacy/saflashplayer-legacy.SlackBuild +++ b/saflashplayer-legacy/saflashplayer-legacy.SlackBuild @@ -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/ diff --git a/saflashplayer/saflashplayer.SlackBuild b/saflashplayer/saflashplayer.SlackBuild index cc270e8..055996c 100644 --- a/saflashplayer/saflashplayer.SlackBuild +++ b/saflashplayer/saflashplayer.SlackBuild @@ -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/ diff --git a/shadowsocks-rust/shadowsocks-rust.SlackBuild b/shadowsocks-rust/shadowsocks-rust.SlackBuild index 5b644fd..48e2ba3 100644 --- a/shadowsocks-rust/shadowsocks-rust.SlackBuild +++ b/shadowsocks-rust/shadowsocks-rust.SlackBuild @@ -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/ \ diff --git a/vips/vips.SlackBuild b/vips/vips.SlackBuild index 32e10a8..687f782 100644 --- a/vips/vips.SlackBuild +++ b/vips/vips.SlackBuild @@ -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 diff --git a/yubikey-manager-qt/yubikey-manager-qt.SlackBuild b/yubikey-manager-qt/yubikey-manager-qt.SlackBuild index db6b1c4..0ca4b01 100644 --- a/yubikey-manager-qt/yubikey-manager-qt.SlackBuild +++ b/yubikey-manager-qt/yubikey-manager-qt.SlackBuild @@ -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 diff --git a/yubikey-manager/yubikey-manager.SlackBuild b/yubikey-manager/yubikey-manager.SlackBuild index bf02d45..72c3a10 100644 --- a/yubikey-manager/yubikey-manager.SlackBuild +++ b/yubikey-manager/yubikey-manager.SlackBuild @@ -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 diff --git a/yubioath-desktop/yubioath-desktop.SlackBuild b/yubioath-desktop/yubioath-desktop.SlackBuild index aec2c2c..c4b733e 100644 --- a/yubioath-desktop/yubioath-desktop.SlackBuild +++ b/yubioath-desktop/yubioath-desktop.SlackBuild @@ -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