summaryrefslogtreecommitdiff
path: root/packages/git/git_snapshot.bb
blob: c9048a4673c240a1f0ee52a752d142687d391779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SECTION = "console/utils"
LICENSE = "GPL"
DESCRIPTION = "The git revision control system used by the Linux kernel developers"
DEPENDS = "openssl curl"
RDEPENDS = "perl \
	    perl-module-file-path \
	    "

PR = "r2"

def get_git_pkgdate(d):
    import bb
    srcdate = bb.data.getVar('SRCDATE', d, 1)
    return "-".join([srcdate[0:4], srcdate[4:6], srcdate[6:8]])

PKGDATE = "${@get_git_pkgdate(d)}"

SRC_URI = "http://www.codemonkey.org.uk/projects/git-snapshots/git/git-${PKGDATE}.tar.gz"
PV = "1.4.3.5+snapshot${PKGDATE}"

S = "${WORKDIR}/git-${PKGDATE}"

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
}