6 : ${source_package_type:=tar.gz}
7 : ${source:=$name-$version.$source_package_type}
8 : ${top_srcdir:=$name-$version}
10 sourcename
=$sourcedir/$source
12 if [ ! -e $sourcename ]; then
13 echo >&2 "Could not find source for $name"
17 buildroot
=$builddir/$name-$version-$release
19 if [ ! -d $buildroot ]; then
25 if [ -d $top_srcdir ]; then
26 echo "source already unpacked"
33 echo >&2 "Failed to unpack $sourcename"
39 pkg_patchdir
=$patchdir/$name
41 if [ -d $pkg_patchdir ]; then
42 find $pkg_patchdir -name '*.patch' -exec patch -p1 -i '{}' \
;
60 echo "Usage: $0 package-name ..."
65 . $
(get_recipe_name
$name)