diff options
Diffstat (limited to 'source/x/xterm')
-rw-r--r-- | source/x/xterm/doinst.sh | 10 | ||||
-rwxr-xr-x | source/x/xterm/xterm.SlackBuild | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/source/x/xterm/doinst.sh b/source/x/xterm/doinst.sh new file mode 100644 index 000000000..1f8ff67de --- /dev/null +++ b/source/x/xterm/doinst.sh @@ -0,0 +1,10 @@ +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 + diff --git a/source/x/xterm/xterm.SlackBuild b/source/x/xterm/xterm.SlackBuild index 863ccae40..392d3053a 100755 --- a/source/x/xterm/xterm.SlackBuild +++ b/source/x/xterm/xterm.SlackBuild @@ -88,12 +88,19 @@ CFLAGS="$SLKCFLAGS" \ --enable-wide-chars \ --enable-88-color \ --enable-256-color \ + --with-icon-theme=hicolor \ + --with-icondir=/usr/share/icons \ + --with-pixmapdir=/usr/share/pixmaps \ --build=$ARCH-slackware-linux # Build and install: make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 +# Not sure why "make install" doesn't do this: +mkdir -p $PKG/usr/share/applications +cp xterm.desktop uxterm.desktop $PKG/usr/share/applications + # Strip binaries: find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null @@ -129,6 +136,7 @@ cp -a \ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz |