aboutsummaryrefslogtreecommitdiff
path: root/desktop/kfaenza-icon-theme/kfaenza-icon-theme.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/kfaenza-icon-theme/kfaenza-icon-theme.SlackBuild')
-rw-r--r--desktop/kfaenza-icon-theme/kfaenza-icon-theme.SlackBuild34
1 files changed, 24 insertions, 10 deletions
diff --git a/desktop/kfaenza-icon-theme/kfaenza-icon-theme.SlackBuild b/desktop/kfaenza-icon-theme/kfaenza-icon-theme.SlackBuild
index 81522ab6357d..0703cf58bf38 100644
--- a/desktop/kfaenza-icon-theme/kfaenza-icon-theme.SlackBuild
+++ b/desktop/kfaenza-icon-theme/kfaenza-icon-theme.SlackBuild
@@ -2,6 +2,7 @@
# Slackware Package Build Script for KFaenza icon theme
# Benjamin Trigona-Harany
+# 2022 Klaatu <klaatu@member.fsf.org>
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -24,11 +25,13 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM="kfaenza-icon-theme"
-VERSION=${VERSION:-0.8.9}
+VERSION=${VERSION:-0.8.9_19}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+REL=${REL:-fc35}
+RELVER=$(echo $VERSION | tr '_' '-')
ARCH=noarch ## hardcode ARCH
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
@@ -45,24 +48,35 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
-rm -fr $TMP/${PRGNAM}_${VERSION} $PKG
-mkdir -p $TMP $PKG $OUTPUT $TMP/${PRGNAM}_${VERSION}
-cd $TMP/${PRGNAM}_${VERSION}
-tar -xvf $CWD/${PRGNAM}-${VERSION}.tar.gz
+rm -fr $TMP/${PRGNAM}-${VERSION} $PKG
+
+mkdir -p $TMP $PKG $OUTPUT $TMP/${PRGNAM}-${VERSION}
+cd $TMP/${PRGNAM}-${VERSION}
+
+rpm2archive $CWD/${PRGNAM}-${RELVER}.$REL.$ARCH.rpm
+mv $CWD/${PRGNAM}-${RELVER}.$REL.$ARCH.rpm.tgz \
+ $TMP/${PRGNAM}-${VERSION}
+
+tar -xvf ${PRGNAM}-${RELVER}.$REL.$ARCH.rpm.tgz --strip-components 1
+
chown -R root.root .
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
-rm KFaenza/INSTALL
# following is from the KFaenza INSTALL script
iconname="start-here-slackware"
-cd ./KFaenza/places/scalable/ && ln -sf ./$iconname.svg distributor-logo.svg && cd ../../..
+cd ./usr/share/icons/KFaenza/places/scalable/ && ln -sf ./$iconname.svg distributor-logo.svg
+
+cd $TMP/${PRGNAM}-${VERSION}
+
for size in 256 128 64 48 32 22 16; do
- cd ./KFaenza/places/$size/ && ln -sf ./$iconname.png distributor-logo.png && cd ../../..
+ cd ./usr/share/icons/KFaenza/places/$size/
+ ln -sf ./$iconname.png distributor-logo.png
+ cd $TMP/${PRGNAM}-${VERSION}
done
-mkdir -p $PKG/usr/share/icons
-cp -a KFaenza $PKG/usr/share/icons
+mkdir -p $PKG
+cp -a ./usr $PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild