From d7003ba6961f404aa5ffa35231650b3ee83b78d7 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 3 Aug 2005 09:47:13 +0000 Subject: Add sourcepkg.bbclass, a crude way to tar up the patched sources into DL_DIR/sourcepkg and md5sums the result. do INHERIT += "sourcepkg" to get all of this goodness. Now I need to find out how to override the Source: field to make it point to said tarballs on your distro's source mirror --- classes/sourcepkg.bbclass | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 classes/sourcepkg.bbclass diff --git a/classes/sourcepkg.bbclass b/classes/sourcepkg.bbclass new file mode 100644 index 0000000000..52cf2647b6 --- /dev/null +++ b/classes/sourcepkg.bbclass @@ -0,0 +1,13 @@ + +do_tarballing(){ + + mkdir -p ${DL_DIR}/sourcepkg/ + cd ${WORKDIR} + echo '.pc' > tar-exclude + tar cjvf ${DL_DIR}/sourcepkg/${P}.tar.bz2 `basename ${S}` -X tar-exclude + md5sum ${DL_DIR}/sourcepkg/${P}.tar.bz2 > ${DL_DIR}/sourcepkg/${P}.tar.bz2.md5 +} + +addtask tarballing after do_patch before do_configure + + -- cgit 1.2.3-korg