summaryrefslogtreecommitdiff
path: root/system/cdrkit/cdrkit.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-09 12:17:01 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-09 12:17:01 -0400
commit79af33ed076b85b863496901fb10959e32d5aba2 (patch)
treee945e52461d53f6a303c1d9ffe889432355049e3 /system/cdrkit/cdrkit.SlackBuild
parentff7736a6792671b1490754d1e84778f04a0cbd1e (diff)
downloadslackbuilds-79af33ed076b85b863496901fb10959e32d5aba2.tar.gz
system/cdrkit: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/cdrkit/cdrkit.SlackBuild')
-rw-r--r--system/cdrkit/cdrkit.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/system/cdrkit/cdrkit.SlackBuild b/system/cdrkit/cdrkit.SlackBuild
index 9d57829ec0..528cb1ed78 100644
--- a/system/cdrkit/cdrkit.SlackBuild
+++ b/system/cdrkit/cdrkit.SlackBuild
@@ -24,25 +24,26 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220409 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - i486 => i586.
+# - add SlackBuild to doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cdrkit
VERSION=${VERSION:-1.1.11}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) 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
@@ -52,8 +53,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
@@ -73,9 +74,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
patch -p1 < $CWD/cdrkit-1.1.11-gcc10.patch
@@ -123,11 +124,12 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- ABOUT COPYING Changelog FAQ FORK INSTALL START TODO VERSION doc/* \
+ ABOUT COPYING Changelog FAQ FORK START TODO VERSION doc/* \
3rd-party/geteltorito/README.geteltorito \
$PKG/usr/doc/$PRGNAM-$VERSION
install -m 0644 3rd-party/dirsplit/README \
$PKG/usr/doc/$PRGNAM-$VERSION/README.dirsplit
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc