diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-07 13:48:22 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-09 15:45:08 +0700 |
commit | 0e7d8e975ca253044301ed681eb316a274d74b68 (patch) | |
tree | 20d2d86ae40694776fea0bcb38e2b2f885ea2ed9 | |
parent | f57ad7d3b00710eec800daa580fbf2b49cccd9ab (diff) |
audio/amSynth: Fix doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | audio/amSynth/amSynth.SlackBuild | 8 | ||||
-rw-r--r-- | audio/amSynth/doinst.sh | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/audio/amSynth/amSynth.SlackBuild b/audio/amSynth/amSynth.SlackBuild index 572d2598a0b2..0cd790e75194 100644 --- a/audio/amSynth/amSynth.SlackBuild +++ b/audio/amSynth/amSynth.SlackBuild @@ -23,11 +23,15 @@ # 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=2: +# - remove useless INSTALL from doc dir. +# - add gtk-update-icon-cache to doinst.sh. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=amSynth VERSION=${VERSION:-1.12.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -105,7 +109,7 @@ if [ -d $PKG/usr/man ]; then fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING NEWS README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/audio/amSynth/doinst.sh b/audio/amSynth/doinst.sh index 5fb28930db0b..3e5691a052b5 100644 --- a/audio/amSynth/doinst.sh +++ b/audio/amSynth/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 usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi |