[bfcaaa0] | 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 -->
|
---|
[7db3be7] | 13 | <!-- See blfs-tool.xsl for exsl:document examples -->
|
---|
[bfcaaa0] | 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>
|
---|
| 23 | PKG_PHASE=dummy
|
---|
| 24 | PACKAGE=dummy
|
---|
| 25 | VERSION=0.0.0
|
---|
| 26 | TARBALL=dummy-0.0.0.tar.bz2
|
---|
[7db3be7] | 27 | DOWNLOAD=http://www.example.com/sources/dummy-0.0.0.tar.bz2
|
---|
| 28 | MD5SUM=b0c2f10c23b1d529725c8f9c693858cf
|
---|
| 29 |
|
---|
| 30 | PATCH="http://www.example.com/sources/dummy-0.0.0.fix1.patch 65c913efccffda4b9dc66e9002e8516e"
|
---|
| 31 | PATCH="http://www.example.com/sources/dummy-0.0.0.fix2.patch fb411aae8d1eb8a733bb1def9266f2ba"
|
---|
[bfcaaa0] | 32 | </xsl:text>
|
---|
| 33 | <xsl:call-template name="disk_usage"/>
|
---|
| 34 | <xsl:call-template name="unpack"/>
|
---|
| 35 | <xsl:text>
|
---|
| 36 | cd $PKGDIR
|
---|
| 37 | ./configure --prefix=/usr
|
---|
| 38 | make
|
---|
| 39 | make 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>
|
---|