1#!/bin/sh 2 3TDIR=`pwd`/cuttlefish-common-buildplace 4mkdir -p "${TDIR}" 5 6cat <<EOF > "${TDIR}"/buildscript_cf_1 7#!/bin/sh 8 9apt-get install -y git ca-certificates less 10apt-get install -y debhelper devscripts cdbs dpkg-dev equivs fakeroot 11apt-get install -y build-essential autoconf automake 12apt-get install -y flex bison libmnl-dev 13apt-get install -y libnetfilter-conntrack-dev libnfnetlink-dev 14apt-get install -y libnftnl-dev libtool 15 16mkdir -p /tmp/b1 17 18cd /tmp/b1 19 20git clone https://github.com/google/android-cuttlefish.git 21cd android-cuttlefish 22 23for subdir in base frontend; do 24 cd \${subdir} 25 mk-build-deps --install --remove --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control 26 dpkg-buildpackage -d -uc -us 27 cd - 28done 29cp -f *.deb ${TDIR} 30EOF 31 32chmod a+rx "${TDIR}"/buildscript_cf_1 33 34cd "${TDIR}" 35pbuilder-dist stable arm64 execute --bindmounts "${TDIR}" -- buildscript_cf_1 36