View Single Post
  #4   (View Single Post)  
Old 20th August 2017
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

I'm guessing this is where we left off on ports@...

Quote:
Originally Posted by shep View Post
I'm trying to update x11/tint2 and have the basic port almost ready to go.
If this is the original post-install:
Quote:
Originally Posted by shep View Post
Code:
post-install:
        cp -R ${WRKSRC}/sample/ ${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
Then, assuming the only significant change is the name of the directory from sample to themes, all you have to do is change the first line:
Code:
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
Reply With Quote