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