diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-13 12:14:18 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-16 12:11:24 +0700 |
commit | 552e9bba0a3d81ca0bd0f7fd708d1de3195c7a12 (patch) | |
tree | 0ea2d804f3001fe9e60117572e5d7e896b893a6e /system/lilyterm | |
parent | 47aa7ee5aca219b89c4347b8ac974d5e24f989ec (diff) | |
download | slackbuilds-552e9bba0a3d81ca0bd0f7fd708d1de3195c7a12.tar.gz |
system/lilyterm: Add doinst.sh, fix .desktop.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/lilyterm')
-rw-r--r-- | system/lilyterm/doinst.sh | 3 | ||||
-rw-r--r-- | system/lilyterm/lilyterm.SlackBuild | 25 |
2 files changed, 16 insertions, 12 deletions
diff --git a/system/lilyterm/doinst.sh b/system/lilyterm/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/system/lilyterm/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/system/lilyterm/lilyterm.SlackBuild b/system/lilyterm/lilyterm.SlackBuild index 3a518a9fcf..19ead3a65b 100644 --- a/system/lilyterm/lilyterm.SlackBuild +++ b/system/lilyterm/lilyterm.SlackBuild @@ -22,11 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220413 bkw: Modified by SlackBuilds.org, BUILD=2: +# - add doinst.sh (needed update-desktop-database). +# - abs path to icon in .desktop file. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lilyterm VERSION=${VERSION:-0.9.9.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +42,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 @@ -75,9 +76,12 @@ cd $PRGNAM-$VERSION 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 \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ + +sed -i '/^Icon/s,=.*,=/usr/share/pixmaps/lilyterm.png,' \ + data/$PRGNAM.desktop CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -87,19 +91,15 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG - -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 +strip $PKG/usr/bin/$PRGNAM # Fix mandir and docdir mv $PKG/usr/share/man $PKG/usr/man +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION rm -fr $PKG/usr/share/doc -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS ChangeLog COPYING README TODO \ @@ -108,6 +108,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |