diff options
Diffstat (limited to 'source/l/adwaita-icon-theme')
-rwxr-xr-x | source/l/adwaita-icon-theme/adwaita-icon-theme.SlackBuild | 61 |
1 files changed, 10 insertions, 51 deletions
diff --git a/source/l/adwaita-icon-theme/adwaita-icon-theme.SlackBuild b/source/l/adwaita-icon-theme/adwaita-icon-theme.SlackBuild index 6264cd83e..4a5b44147 100755 --- a/source/l/adwaita-icon-theme/adwaita-icon-theme.SlackBuild +++ b/source/l/adwaita-icon-theme/adwaita-icon-theme.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2008, 2009, 2010, 2012, 2013, 2018, 2023 Patrick Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010, 2012, 2013, 2018, 2023, 2024 Patrick Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=adwaita-icon-theme VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -92,51 +92,13 @@ meson setup \ DESTDIR=$PKG $NINJA install || exit 1 cd .. -# Add some extra icons that have gone missing since adwaita-icon-theme-41.0 -# to ensure complete coverage of the FDo icon theme specification. -# Copy from the main tree and back to make sure that we -# don't overwrite these if they eventally appear. -( cd $PKG - mkdir tmpicons - cd tmpicons - tar xvf $CWD/41/adwaita-icon-theme-41.0.tar.xz || exit 1 - cd adwaita-icon-theme-41.0 - # Configure, build, and install: - export CFLAGS="$SLKCFLAGS" - export CXXFLAGS="$SLKCFLAGS" - ./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --build=$ARCH-slackware-linux || exit 1 - make $NUMJOBS || make || exit 1 - make install DESTDIR=$PKG/tmpicons || exit 1 - rsync -lprvt --progress ../usr/ usr/ - # Then sync back: - rsync -lprvt --progress usr/ ../usr/ - # And remove the leftovers: - cd .. - rm -r tmpicons -) - -# Add some extra icons that are missing for Xfce. -# Copy from the main tree and back to make sure that we -# don't overwrite these if they eventally appear. -( cd $PKG - mkdir tmpicons - cd tmpicons - tar xf $CWD/adwaita-xfce-icons-0.6.tar.xz - rm -f README - rsync -lprvt --progress ../usr/ usr/ - # Then sync back: - rsync -lprvt --progress usr/ ../usr/ - # And remove the leftovers: - cd .. - rm -r tmpicons -) - +# It's a bad idea to ship these in the packages. If they aren't kept +# updated, there will be missing icons. Let the user create them if +# they care to. +find $PKG -name icon-theme.cache -exec rm "{}" \+ find $PKG -name .icon-theme.cache -exec rm "{}" \; +find $PKG -name .placeholder -exec rm "{}" \; +find $PKG -name .empty -exec rm "{}" \; mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -a \ @@ -147,10 +109,8 @@ if [ -r ChangeLog ]; then touch -r ChangeLog $PKG/usr/doc/$PKGNAM/ChangeLog fi -# It's a bad idea to ship these in the packages. If they aren't kept -# updated, there will be missing icons. Let the user create them if -# they care to. -find $PKG -name icon-theme.cache -exec rm "{}" \+ +mv $PKG/usr/share/licenses/*/* $PKG/usr/doc/$PKGNAM-$VERSION +rm -rf $PKG/usr/share/licenses mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc @@ -158,4 +118,3 @@ zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-noarch-$BUILD.txz - |