Browse Source

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>
pull/186/head
B. Watson 4 years ago
committed by Willy Sudiarto Raharjo
parent
commit
419c34ab4b
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 22
      desktop/areao43-icon-theme/areao43-icon-theme.SlackBuild

22
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/

Loading…
Cancel
Save