summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-07 12:23:34 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-09 15:45:07 +0700
commit419c34ab4bfc72c42abc559402ac45403bf07a6c (patch)
treeb60bbf8417ae79095545b72c056dee1fb4adfdff
parentfa62bdac86522126f89ef3468f67df268f4e271e (diff)
downloadslackbuilds-419c34ab4bfc72c42abc559402ac45403bf07a6c.tar.gz
desktop/areao43-icon-theme: Fix icon perms, don't write to $CWD.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--desktop/areao43-icon-theme/areao43-icon-theme.SlackBuild22
1 files changed, 11 insertions, 11 deletions
diff --git a/desktop/areao43-icon-theme/areao43-icon-theme.SlackBuild b/desktop/areao43-icon-theme/areao43-icon-theme.SlackBuild
index de233bf3b4..8f22c19be4 100644
--- a/desktop/areao43-icon-theme/areao43-icon-theme.SlackBuild
+++ b/desktop/areao43-icon-theme/areao43-icon-theme.SlackBuild
@@ -21,19 +21,20 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220301 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - stop writing to $CWD.
+# - fix permissions (icons should not be executable).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=areao43-icon-theme
VERSION=${VERSION:-1.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
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,19 +46,18 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
+TARBALL=$CWD/101979-areao43.tar.bz2
+[ -e "$TARBALL" ] || TARBALL=$CWD/$PRGNAM-$VERSION.tar.bz2
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-[ -f "$CWD/101979-areao43.tar.bz2" ] && mv "$CWD/101979-areao43.tar.bz2" "$CWD/$PRGNAM-$VERSION.tar.bz2"
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar -xvf $TARBALL
cd areao43
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 \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find . -type d -exec chmod 755 {} \+
+find . -type f -exec chmod 644 {} \+
rm -rf icon-theme.cache
mkdir -p $PKG/usr/share/icons/areao43-icon-theme/