I am having trouble with the last part of a x11/tint2 update.

The new code source https://gitlab.com/o9000/tint2 has moved panel
rc configuration files into a themes directory.  My Makefile, without
any post-install entries, places the *tint2rc files into
/usr/local/share/tint2.  The challenge for me is moving the *.tint2rc
files to /usr/local/share/examples/tint2 while leaving default_icon.png
in /usr/local/share/tint2.  I had help with the last tint2 update and
have tried to walk through the older post-install with the man page for
sed but I get thrown with the invocation
\/usr\/local\/share\/applications.

My PLIST from a Makefile with no post-install:

@comment $OpenBSD: PLIST,v 1.1.1.1 2015/09/11 14:14:07 sthen Exp $
@pkgpath x11/tint
@bin bin/tint2
@bin bin/tint2conf
@man man/man1/tint2.1
share/applications/tint2.desktop
share/applications/tint2conf.desktop
share/doc/tint2/
share/doc/tint2/AUTHORS
share/doc/tint2/ChangeLog
share/doc/tint2/README.md
@sample ${SYSCONFDIR}/xdg/
@sample ${SYSCONFDIR}/xdg/tint2/
share/doc/tint2/html/
share/doc/tint2/html/images/
share/doc/tint2/html/images/panel_padding.jpg
share/doc/tint2/html/images/panel_size_margin.jpg
share/doc/tint2/html/images/task_padding.jpg
share/doc/tint2/html/images/taskbar_padding.jpg
share/doc/tint2/html/manual.html
share/doc/tint2/html/readme.html
share/doc/tint2/tint2.md
share/icons/hicolor/scalable/apps/tint2.svg
share/icons/hicolor/scalable/apps/tint2conf.svg
share/locale/bs/LC_MESSAGES/tint2conf.mo
share/locale/fr/LC_MESSAGES/tint2conf.mo
share/locale/hr/LC_MESSAGES/tint2conf.mo
share/locale/pl/LC_MESSAGES/tint2conf.mo
share/locale/ru/LC_MESSAGES/tint2conf.mo
share/locale/sr/LC_MESSAGES/tint2conf.mo
share/mime/packages/tint2conf.xml
share/tint2/
share/tint2/default_icon.png
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
share/tint2/horizontal-dark-opaque.tint2rc
share/tint2/horizontal-dark-transparent.tint2rc
share/tint2/horizontal-light-opaque.tint2rc
share/tint2/horizontal-light-transparent.tint2rc
share/tint2/icon_and_text_1.tint2rc
share/tint2/icon_and_text_2.tint2rc
share/tint2/icon_and_text_3.tint2rc
share/tint2/icon_and_text_4.tint2rc
share/tint2/icon_only_1.tint2rc
share/tint2/icon_only_2.tint2rc
share/tint2/icon_only_3.tint2rc
share/tint2/icon_only_4.tint2rc
share/tint2/icon_only_6.tint2rc
share/tint2/icon_only_7.tint2rc
share/tint2/text_only_1.tint2rc
share/tint2/text_only_2.tint2rc
share/tint2/text_only_3.tint2rc
share/tint2/text_only_4.tint2rc
share/tint2/text_only_5.tint2rc
share/tint2/text_only_6.tint2rc
share/tint2/vertical-dark-opaque.tint2rc
share/tint2/vertical-dark-transparent.tint2rc
share/tint2/vertical-light-opaque.tint2rc
share/tint2/vertical-light-transparent.tint2rc
share/tint2/vertical-neutral-icons.tint2rc

I tried changing sample to themes but get a no operator error.

post-install:
       cp -R ${WRKSRC}/themes/ ${PREFIX}/share/examples/tint2/
       sed -i -e '/\/usr\/local\/share\/applications/d' -e \
           's,/usr/share/applications,${LOCALBASE}/share/applications,g' \
           ${PREFIX}/share/examples/tint2/*tint2rc
       rm ${PREFIX}/share/tint2/*.tint2rc

Can someone point me in the right direction?

Thanks in advance



--
J. Scott Heppler

Reply via email to