diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2020-04-25 03:46:40 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-05-03 08:48:43 +0700 |
commit | 7d8fda6e9a665cc78188bb5e0afc6c17bbc89d38 (patch) | |
tree | 8801a8aee0d34f54e3dc959b9fc6811475058fff /misc | |
parent | 3a25751aa12c78ee37a38fcc6e8c18519d668528 (diff) |
misc/dvtm: Fix and install terminfo.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dvtm/doinst.sh | 3 | ||||
-rw-r--r-- | misc/dvtm/dvtm.SlackBuild | 23 |
2 files changed, 23 insertions, 3 deletions
diff --git a/misc/dvtm/doinst.sh b/misc/dvtm/doinst.sh new file mode 100644 index 0000000000000..870a890ca1612 --- /dev/null +++ b/misc/dvtm/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/tic ]; then + /usr/bin/tic -s usr/share/dvtm/dvtm.info >/dev/null 2>&1 +fi diff --git a/misc/dvtm/dvtm.SlackBuild b/misc/dvtm/dvtm.SlackBuild index 5a37858326caf..2d9f8706841cc 100644 --- a/misc/dvtm/dvtm.SlackBuild +++ b/misc/dvtm/dvtm.SlackBuild @@ -24,9 +24,11 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by slackbuilds.org + PRGNAM=dvtm VERSION=${VERSION:-0.15} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,11 +73,25 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Strip the slackware way +sed "/@${STRIP} dvtm/d" Makefile + +# Fix terminfo +sed -i "s|f22.*$|&,|" dvtm.info + CFLAGS="$SLKCFLAGS" \ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ make -make install DESTDIR=$PKG PREFIX=/usr MANPREFIX=/usr/man -# binaries are already stripped +make install \ + PREFIX=/usr \ + MANPREFIX=/usr/man \ + 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 + +# install terminfo +install -D -m 0644 dvtm.info $PKG/usr/share/dvtm/dvtm.info mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ @@ -88,6 +104,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir $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:-tgz} |