source: XSL/custom-tools.xsl@ 7db3be7

experimental
Last change on this file since 7db3be7 was 7db3be7, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Making the new blfs-tool-deps download code generic enought to can be used also on custom-tools and user inserted scripts.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<?xml version="1.0"?>
2
3<!-- $Id$ -->
4
5<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 xmlns:exsl="http://exslt.org/common"
7 extension-element-prefixes="exsl"
8 version="1.0">
9
10
11 <!-- Create a custom tools directory containing scripts
12 to be run after the base system has been built -->
13 <!-- See blfs-tool.xsl for exsl:document examples -->
14 <xsl:template name="custom-tools">
15 <!-- Fixed directory and ch_order values -->
16 <xsl:variable name="basedir">custom-tools/20_</xsl:variable>
17 <!-- Add an exsl:document block for each script to be created.
18 This one is only a dummy example. You must replace "01" by
19 the proper build order and "dummy" by the script name -->
20 <exsl:document href="{$basedir}01-dummy" method="text">
21 <xsl:call-template name="header"/>
22 <xsl:text>
23PKG_PHASE=dummy
24PACKAGE=dummy
25VERSION=0.0.0
26TARBALL=dummy-0.0.0.tar.bz2
27DOWNLOAD=http://www.example.com/sources/dummy-0.0.0.tar.bz2
28MD5SUM=b0c2f10c23b1d529725c8f9c693858cf
29
30PATCH="http://www.example.com/sources/dummy-0.0.0.fix1.patch 65c913efccffda4b9dc66e9002e8516e"
31PATCH="http://www.example.com/sources/dummy-0.0.0.fix2.patch fb411aae8d1eb8a733bb1def9266f2ba"
32 </xsl:text>
33 <xsl:call-template name="disk_usage"/>
34 <xsl:call-template name="unpack"/>
35 <xsl:text>
36cd $PKGDIR
37./configure --prefix=/usr
38make
39make install
40 </xsl:text>
41 <xsl:call-template name="disk_usage"/>
42 <xsl:call-template name="clean_sources"/>
43 <xsl:call-template name="footer"/>
44 </exsl:document>
45 </xsl:template>
46
47</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.