From fe93df62e8fd546ff0519041eefebca14adeb593 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 7 Apr 2022 14:35:31 -0400 Subject: office/basket: Fix icon. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- office/basket/basket.SlackBuild | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/office/basket/basket.SlackBuild b/office/basket/basket.SlackBuild index a8da8ba799..59b6593316 100644 --- a/office/basket/basket.SlackBuild +++ b/office/basket/basket.SlackBuild @@ -22,6 +22,9 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220407 bkw: Modified by SlackBuilds.org, BUILD=3: +# - fix icon (wrong pixel size). + # 20220404 bkw: Modified by SlackBuilds.org, BUILD=2: # - no +x permission on .desktop file. # - no useless INSTALL in doc dir. @@ -31,7 +34,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=basket VERSION=${VERSION:-2.49b} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -92,11 +95,11 @@ cd build -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DCMAKE_BUILD_TYPE=Release .. make - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +#find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + #| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/share/applications cp src/basket.desktop $PKG/usr/share/applications @@ -104,6 +107,11 @@ cp src/basket.desktop $PKG/usr/share/applications mkdir -p $PKG/usr/share/mime/packages/ cp file-integration/basket.xml $PKG/usr/share/mime/packages/ +# 20220407 bkw: 128x128 icon is actually 126x126, fix. +I=$PKG/usr/share/icons/hicolor/128x128/apps/basket.png +convert -extent 128x128 -gravity center -background none $I new.png +mv new.png $I + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS COPYING README.md \ -- cgit v1.2.3