--- /dev/null
+Index: git-snapshot-20050912/Makefile
+===================================================================
+--- git-snapshot-20050912.orig/Makefile 2005-09-11 03:46:53.000000000 +0100
++++ git-snapshot-20050912/Makefile 2005-09-12 12:18:38.000000000 +0100
+@@ -239,7 +240,7 @@
+ $(CC) -o $*.o -c $(ALL_CFLAGS) $<
+
+ git-%: %.o $(LIB_FILE)
+- $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
++ $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS) $(LDFLAGS)
+
+ git-mailinfo : SIMPLE_LIB += $(LIB_4_ICONV)
+ $(SIMPLE_PROGRAMS) : $(LIB_FILE)
--- /dev/null
+include git.bb
+inherit native
+
+do_stage () {
+ oe_runmake install bindir=${STAGING_BINDIR} \
+ template_dir=${STAGING_DIR}/${BUILD_SYS}/share/git-core/templates/ \
+ GIT_PYTHON_DIR=${STAGING_DIR}/${BUILD_SYS}/share/git-core/python
+}
--- /dev/null
+SECTION = "console/utils"
+LICENSE = "GPL"
+DESCRIPTION = "The git revision control system used by the Linux kernel developers"
+DEPENDS = "openssl curl"
+MAINTAINER = "Richard Purdie <rpurdie@rpsys.net>"
+
+PKGDATE = "${@time.strftime('%Y-%m-%d',time.gmtime())}"
+
+SRC_URI = "http://www.codemonkey.org.uk/projects/git-snapshots/git/git-${PKGDATE}.tar.gz \
+ file://Makefile.patch;patch=1"
+
+S = "${WORKDIR}/git-snapshot-${DATE}"
+
+FILES_${PN} += "${datadir}/git-core"
+
+do_install () {
+ oe_runmake install prefix=${D} bindir=${D}${bindir} \
+ template_dir=${D}${datadir}/git-core/templates \
+ GIT_PYTHON_DIR=${D}${datadir}/git-core/python
+}
+