aboutsummaryrefslogtreecommitdiff
path: root/ham
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-04 19:42:36 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-04 19:42:36 -0400
commit05f0a7b137b28fbcaac6a2f9804f09beb439d998 (patch)
tree40d2ae6415612d825ecd0804303b9e1aee7ac84c /ham
parented5330b26db51f77a3fc5c595872bf8c36531da5 (diff)
ham/baudline: Actually set ARCH.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'ham')
-rw-r--r--ham/baudline/baudline.SlackBuild27
1 files changed, 19 insertions, 8 deletions
diff --git a/ham/baudline/baudline.SlackBuild b/ham/baudline/baudline.SlackBuild
index a91d8d66d0f9..d715a5dd2d5e 100644
--- a/ham/baudline/baudline.SlackBuild
+++ b/ham/baudline/baudline.SlackBuild
@@ -20,23 +20,34 @@
# see fit. Or as I see fit. Or as I fit. Although
# that is unlikely, as I am rather tall.
+# 20220301 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - actually set ARCH. makepkg was creating a package called
+# baudline-1.08--2_SBo.tgz, which is bad, mmm'kay?
+# note: .desktop file validates, but with a hint (basically a minor
+# warning). not going to mess with it for now.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=baudline
VERSION=${VERSION:-1.08}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-case "${ARCH:-$(uname -m)}" in
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+case "$ARCH" in
i?86) SRCARCH=i686; ARCHDIR=x86 ;;
x86_64) SRCARCH=x86_64; ARCHDIR=x86_64 ;;
*) echo "$ARCH is not supported"; exit 1 ;;
esac
-# 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
@@ -57,9 +68,9 @@ cd ${PRGNAM}_${VERSION}_linux_${ARCHDIR}
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 \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
mkdir -p $PKG/usr/bin
install -m 755 baudline $PKG/usr/bin
@@ -84,7 +95,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README_unix.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc -type f -exec chmod 644 {} \;
+find $PKG/usr/doc -type f -exec chmod 644 {} \+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc