summaryrefslogtreecommitdiffstats
path: root/meta/packages/yum/createrepo-native_0.9.bb
blob: 22b50331b5ad01f598c3d64e383e0becddcf0f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SRC_URI = "http://linux.duke.edu/projects/metadata/generate/createrepo-${PV}.tar.gz \
           file://fix.patch;patch=1 \
           file://pathfix.patch;patch=1 "
PR = "r1"

inherit autotools native

S = "${WORKDIR}/createrepo-${PV}"

do_compile_append () {
	sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/createrepo
	sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/modifyrepo
	sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/genpkgmetadata.py
	sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/modifyrepo.py
}