diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-27 04:00:00 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:41:58 +0700 |
commit | 20ad9a7874dfc5436f7dea3de4b8e0d85435a6d3 (patch) | |
tree | 74826126d56cd97a0967b29a0247bb87aa372451 /multimedia/spek | |
parent | fbf4581e88cd03891bce743fd7640fff82b490ef (diff) |
multimedia/spek: Fix doinst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/spek')
-rw-r--r-- | multimedia/spek/doinst.sh | 6 | ||||
-rw-r--r-- | multimedia/spek/spek.SlackBuild | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/multimedia/spek/doinst.sh b/multimedia/spek/doinst.sh index 5fb28930db0b9..65c7e2eeb9aa5 100644 --- a/multimedia/spek/doinst.sh +++ b/multimedia/spek/doinst.sh @@ -1,3 +1,9 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/multimedia/spek/spek.SlackBuild b/multimedia/spek/spek.SlackBuild index 62675c304f75b..fdaf7a19cebc3 100644 --- a/multimedia/spek/spek.SlackBuild +++ b/multimedia/spek/spek.SlackBuild @@ -24,12 +24,15 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20230627 bkw: Modified by SlackBuilds.org, BUILD=2: +# - add gtk-update-icon-cache to doinst.sh. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=spek VERSION=${VERSION:-0.8.3_07c13da27d} GITVER=${GITVER:-07c13da27d9c2acfc713c63c21d123cae4b5ce65} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,9 +44,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -78,9 +78,9 @@ cd $PRGNAM-$GITVER 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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} + ./autogen.sh CFLAGS="$SLKCFLAGS" \ |