[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:misc:anatomy_of_a_slackbuild [2019/12/22 18:05 (UTC)] – [Sources] captain_sensiblehowtos:misc:anatomy_of_a_slackbuild [2020/01/04 15:43 (UTC)] – [Anatomy Of a Slackbuild] captain_sensible
Line 154: Line 154:
 </code> </code>
  
-Before we go into this let me have a look in my slackware file  system and see whats there at /tmp/SBo.Taking a quick look at the image will give you a clue that the slackbuild works, by using the /tmp/SBo/ directory and creates a directory with the syntax package-packagename.So if we now have a look at the code above. CWD (current working directory)  is a  variable and is set to the value of pwd. If you run that in a terminal window, it will tell you where you in a bash context where you are working from.{{howtos:misc:tmp_Sbo.gif}}+Before we go into this let me have a look in my slackware file  system and see whats there at /tmp/SBo.Taking a quick look at the image will give you a clue that the slackbuild works, by using the /tmp/SBo/ directory and creates a directory with the syntax package-packagename.So if we now have a look at the code above. CWD (current working directory)  is a  variable and is set to the value of pwd. If you run that in a terminal window, it will tell you where you in a bash context where you are working from.{{ howtos:misc:tmp_Sbo.gif }}
  
 TMP is going to be set to /tmp/SBo. TMP is going to be set to /tmp/SBo.
Line 291: Line 291:
 Then you will get some useful information from the developers. It tells you the option and how you can enable some of them.  Then you will get some useful information from the developers. It tells you the option and how you can enable some of them. 
  
 +<code>
 +make
 +make install DESTDIR=$PKG
 +</code>
 +
 +Here, make, make install are carried out.Note DESTDIR is a flag to say where the package will go. \\
 + 
 +$PKG equates to /tmp/SBo/package-latex2html
 +
 +Next Block of code:\\
 +
 +<code>
 +
 +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
 +
 +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 +cp -a \
 + FAQ INSTALL LICENSE MANIFEST README.md TODO  \
 +  $PKG/usr/doc/$PRGNAM-$VERSION
 +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 +cp $CWD/manual.pdf  $PKG/usr/doc/$PRGNAM-$VERSION
 +
 +mkdir -p $PKG/install
 +cat $CWD/slack-desc > $PKG/install/slack-desc 
 +
 +cd $PKG
 +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
 +
 +</code>
 +
 +
 +
 + --- //[[wiki:user:captain_sensible|andy brookes]] 2019/12/28 19:28 (UTC)//
 +//
  
- --- //[[wiki:user:captain_sensible|andy brookes]] 2019/12/12 20:43 (UTC)//If you teach maths it doesn't stop you  embedding a little English.  +//If you teach maths it doesn't stop you  embedding a little English.  
  
  
 howtos:misc:anatomy_of_a_slackbuild ()