Source

vpackager / src / vpackager / buildutils.py

Diff from to

File src/vpackager/buildutils.py

         return bottools.Execute('installpkg %s'% fullpath)
 
 
-    def makeSlackBuild(self, buildno='1', packager=_packager):
+    def makeSlackBuild(self, buildno='1', packager=_packager,
+                       config=""):
         """ Generate a slackbuild using sbbuilder to build this source"""
         ### Use sbbuilder to create a slackbuild for his package.
         ### The only diff from using this vs sbbuilder itself is that
 
         # call the sbbuilder binary
         proc = bottools.Execute(
-            'sbbuilder --package=%s --version=%s --type=%s --build=%s --user=%s' %(
-                self.app, self.ver, self.builder, buildno, packager))
+            'sbbuilder --package=%s --version=%s --type=%s --build=%s --user=%s --configure_options=%s' %(
+                self.app, self.ver, self.builder, buildno, packager, config))
         proc.run()
         if proc.popen.returncode > 0:
             # the process failed
         self.builder = srctype
         self.link = link
 
-    def makeSlackBuild(self, buildno='1', packager=_packager):
+    def makeSlackBuild(self, buildno='1', packager=_packager, config=""):
         """ Generate the build script for this source """
         try:
             os.makedirs(_sources_home)
             os.chdir(_sources_home)
         except:
             raise MissingSourcesHomeError
-        cm = 'sbbuilder --package=%s --version=%s --type=%s '% (self.app,
+        cm = 'sbbuilder --package=%s --version=%s --type=%s'% (self.app,
                 self.ver, self.builder) + \
-                '--build=%s --user=%s --link=%s'% (buildno,
-                        packager, self.link)
+                '--build=%s --user=%s --link=%s --configure_options=%s'% (buildno,
+                        packager, self.link, config)
         proc = bottools.Execute(cm)
         proc.run()
         if proc.popen.returncode > 0: