--- /dev/null
+# hdw - linux git package
+#
+# author: hackbard@hackdaworld.dyndns.org
+#
+# [V] latest
+# [S] 3-4
+# [D] git-latest.tar.gz http://www.codemonkey.org.uk/projects/git-snapshots/git/
+# [D] git-changes-script http://www.kernel.org/pub/linux/kernel/people/jgarzik/
+# [D] git-new-branch http://www.kernel.org/pub/linux/kernel/people/jgarzik/
+
+install_conf="prefix=$prefix $install_conf"
+
+post_install() {
+ #some extra scripts
+ for i in git-changes-script git-new-branch; do
+ install -m 0755 $archdir/$i $prefix/bin
+ done
+ # patching git documentation
+ sed -i 's%link:howto-index.html%link:../howto%' Documentation/git.txt
+ # installing documentation
+ rm -rf $docdir ; mkdir -p $docdir/{html,ascii}
+ for i in Documentation/git*.txt; do
+ asciidoc -b html4 -d manpage $i
+ install -m 0644 $i $docdir/ascii
+ install -m 0644 `echo $i | sed 's/.txt/.html/'` $docdir/html
+ done
+ for i in cvs-migration tutorial glossary diff-format diff-options \
+ diffcore pack-protocol hooks pull-fetch-param \
+ repository-layout; do
+ asciidoc Documentation/$i.txt
+ install -m 0644 Documentation/$i.txt $docdir/ascii
+ install -m 0644 Documentation/$i.html $docdir/html
+ done
+ cp -r Documentation/{howto,technical} $docdir
+ }
--- /dev/null
+# hdw-linux asciidoc extensions
+
+# author: hackbard
+
+# [S] 3-3
+# [V] 7.0.2
+# [D] asciidoc-7.0.2.tar.gz http://www.methods.co.nz/asciidoc/
+
+build_main() {
+ install -m 0755 asciidoc.py $prefix/bin/asciidoc.py
+ ln -sfv asciidoc.py $prefix/bin/asciidoc
+ mkdir -p $root/etc/asciidoc
+ cp -v *.conf $root/etc/asciidoc/
+ cp -r stylesheets images filters $root/etc/asciidoc/
+ }