Commits

Uelsk8s committed dc94f58

fixed pkgsetup, schemas in tweaks, and missing space in manual

  • Participants
  • Parent commits 75f8a04

Comments (0)

Files changed (3)

 
 =item B<--type=>string
 
-Type of SlackBuild.  There are 6 types of SlackBuilds :
+Type of SlackBuild.  There are 7 types of SlackBuilds :
 
 I<normal> . Default configure; make and make install flags. 
 
 I<waf> . Use waf instead GNU autoconf.
 
 I<scons> . Use scons instead GNU autoconf.
+
 =item B<--link=>string
 
 Enter a download link if you know where you can find the source tarball.

File templates/pkgsetup

 tar xvf $CWD/$NAME-$VERSION.tar.* || exit 1
 #this moves whatever was extracted to the std dirname we are expecting
 mv * $NAME-$VERSION &> /dev/null 2>&1
+mkdir -p $PKG
 #-----------------------------------------------------
 
 
 cd $TMP/$NAME-$VERSION
 
+
 #PATCHES
 #-----------------------------------------------------
 # Put any Patches here *NOTE this only works if all 
 # your patches use the -p1 strip option!
 #-----------------------------------------------------
-#patch -p1 <
 for i in $CWD/patches/*;do
-  patch -p1 <$i || exit 1
+  patch -p1 <$i
   mkdir -p $PKG/usr/doc/$NAME-$VERSION/patches/
   cp $i $PKG/usr/doc/$NAME-$VERSION/patches/
 done

File templates/tweaks

 
 #----------------------------------------------------------------------
 
-if [ -d $PKG/usr/share/man ] ; then
+if [ -d $PKG/usr/share/man ];then
 mkdir -p $PKG/usr/man
 mv $PKG/usr/share/man/* $PKG/usr/man
 rm -rf $PKG/usr/share/man
 fi
 find $PKG/usr/man -type f -exec gzip -9 {} \;
 
-if [ -d $PKG/usr/share/info ] ; then
+if [ -d $PKG/usr/share/info ];then
 mkdir -p $PKG/usr/info
 mv $PKG/usr/share/info/* $PKG/usr/info
 rm -rf $PKG/usr/share/info
 fi 
+find $PKG/usr/info -type f -exec gzip -9 {} \;
 
-find $PKG/usr/info -type f -exec gzip -9 {} \;
 mkdir -p $PKG/install
-if [ -d $PKG/usr/info ] ; then
+if [ -d $PKG/usr/info ];then
 cat >> $PKG/install/doinst.sh << EOF
 CWD=\$(pwd)
 cd usr/info
-if [ -f dir ]; then
+if [ -f dir ];then
     rm dir
 fi
-if [ -f dir.gz ]; then
+if [ -f dir.gz ];then
     rm dir.gz
 fi
 for i in *.info.gz;do
 fi
 
 # Add schemas install to the doinst.sh if schemas are found.
-if [ -d $PKG/etc/gconf/schemas ] && {
+if [ -d $PKG/etc/gconf/schemas ];then
 # Make sure we have gconftool installed
 echo "if [ -x usr/bin/gconftool-2 ]; then" >> $PKG/install/doinst.sh
 ( cd $PKG/etc/gconf/schemas
 )
 # Finish off gconf block
 echo "fi" >> $PKG/install/doinst.sh
-}
+fi